{"id":28499,"date":"2024-03-16T10:26:39","date_gmt":"2024-03-16T10:26:39","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/"},"modified":"2024-03-22T13:36:18","modified_gmt":"2024-03-22T13:36:18","slug":"basic-guide-for-using-apache-doris","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/","title":{"rendered":"Basic Guide for Using Apache Doris"},"content":{"rendered":"<p>Apache Doris, originally named Palo, is a distributed relational database based on column storage and MPP architecture. It offers a high performance, reliable, and scalable solution for data storage and analysis. Here is a basic guide to using Apache Doris.<\/p>\n<ol>\n<li>To install and configure Doris, first download the installation package and unzip it. Then, in the unzipped directory, locate the &#8220;conf&#8221; folder and edit the &#8220;doris_fe.conf&#8221; and &#8220;doris_be.conf&#8221; files to configure parameters such as the listening address, port, storage directory, etc.<\/li>\n<li>To start Doris: in the directory after decompression, run the command bin\/start_fe.sh to start the frontend service. Next, run the command bin\/start_be.sh on each backend node to start the backend service.<\/li>\n<li>Create Database: Use Doris&#8217; command line tool &#8216;doris&#8217; to create a database. For example, use the command &#8216;doris create database test&#8217; to create a database named test.<\/li>\n<li>Create a table using Doris&#8217;s command line tool &#8216;doris&#8217; command. For example, execute the command &#8216;doris -d test -e &#8220;create table t (id int, name varchar(20))&#8221;&#8216; to create a table named &#8216;t&#8217; with two fields &#8211; id and name.<\/li>\n<li>Load data: Use Doris&#8217;s command line tool, the doris command, to load data into a table. For example, by running the command &#8220;doris -d test -e &#8216;load data inpath &#8216;path\/to\/data.txt&#8217; into table t'&#8221;, the data file data.txt will be loaded into table t.<\/li>\n<li>Query data: Utilize Doris&#8217;s command-line tool to query data with the command &#8220;doris -d test -e &#8220;select * from t&#8221; to retrieve all data from table t.<\/li>\n<li>Update data: Use Doris command line tool &#8216;doris&#8217; to modify data. For example, running the command &#8216;doris -d test -e &#8220;update t set name=\u2018newname\u2019 where id=1&#8243;&#8216; will change the name field of the data with id 1 to &#8216;newname&#8217;.<\/li>\n<li>Delete data: Use the Doris command line tool &#8220;doris&#8221; to remove data. For example, run the command &#8220;doris -d test -e &#8220;delete from t where id=1&#8243;&#8221; to delete data with id 1.<\/li>\n<li>Optimize table: Improve the storage and query performance of a table using the Doris command-line tool, doris command. For example, running the command &#8220;doris -d test -e &#8220;optimize table t&#8221;&#8221; will optimize table t.<\/li>\n<li>Stop Doris: In the directory after decompression, run the command bin\/stop_fe.sh to stop the front-end service. Then, run the command bin\/stop_be.sh on each backend node to stop the backend service.<\/li>\n<\/ol>\n<p>This is a basic guide for using Apache Doris, where you can perform operations and configurations according to your specific needs. However, this is just a simple introduction. If you want to delve deeper into using Doris, you can refer to the official documentation or other related materials.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Doris, originally named Palo, is a distributed relational database based on column storage and MPP architecture. It offers a high performance, reliable, and scalable solution for data storage and analysis. Here is a basic guide to using Apache Doris. To install and configure Doris, first download the installation package and unzip it. Then, in [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-28499","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Basic Guide for Using Apache Doris - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic Guide for Using Apache Doris\" \/>\n<meta property=\"og:description\" content=\"Apache Doris, originally named Palo, is a distributed relational database based on column storage and MPP architecture. It offers a high performance, reliable, and scalable solution for data storage and analysis. Here is a basic guide to using Apache Doris. To install and configure Doris, first download the installation package and unzip it. Then, in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-16T10:26:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-22T13:36:18+00:00\" \/>\n<meta name=\"author\" content=\"Noah Thompson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Noah Thompson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\"},\"author\":{\"name\":\"Noah Thompson\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/2e83cc6ab9f60d36921c2d0f9f280f4a\"},\"headline\":\"Basic Guide for Using Apache Doris\",\"datePublished\":\"2024-03-16T10:26:39+00:00\",\"dateModified\":\"2024-03-22T13:36:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\"},\"wordCount\":458,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\",\"name\":\"Basic Guide for Using Apache Doris - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2024-03-16T10:26:39+00:00\",\"dateModified\":\"2024-03-22T13:36:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic Guide for Using Apache Doris\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"name\":\"Silicon Cloud Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\",\"name\":\"Silicon Cloud Blog\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"contentUrl\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"width\":1024,\"height\":1024,\"caption\":\"Silicon Cloud Blog\"},\"image\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\",\"https:\/\/twitter.com\/SiliCloudGlobal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/2e83cc6ab9f60d36921c2d0f9f280f4a\",\"name\":\"Noah Thompson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/350e537e1530ede2762ee0237e877d6693f4f7163ab4f303202cc9a6b27b6cb4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/350e537e1530ede2762ee0237e877d6693f4f7163ab4f303202cc9a6b27b6cb4?s=96&d=mm&r=g\",\"caption\":\"Noah Thompson\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/noahthompson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Basic Guide for Using Apache Doris - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/","og_locale":"en_US","og_type":"article","og_title":"Basic Guide for Using Apache Doris","og_description":"Apache Doris, originally named Palo, is a distributed relational database based on column storage and MPP architecture. It offers a high performance, reliable, and scalable solution for data storage and analysis. Here is a basic guide to using Apache Doris. To install and configure Doris, first download the installation package and unzip it. Then, in [&hellip;]","og_url":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2024-03-16T10:26:39+00:00","article_modified_time":"2024-03-22T13:36:18+00:00","author":"Noah Thompson","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Noah Thompson","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/"},"author":{"name":"Noah Thompson","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/2e83cc6ab9f60d36921c2d0f9f280f4a"},"headline":"Basic Guide for Using Apache Doris","datePublished":"2024-03-16T10:26:39+00:00","dateModified":"2024-03-22T13:36:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/"},"wordCount":458,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/","url":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/","name":"Basic Guide for Using Apache Doris - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2024-03-16T10:26:39+00:00","dateModified":"2024-03-22T13:36:18+00:00","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/basic-guide-for-using-apache-doris\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Basic Guide for Using Apache Doris"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/blog\/#website","url":"https:\/\/www.silicloud.com\/blog\/","name":"Silicon Cloud Blog","description":"","publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.silicloud.com\/blog\/#organization","name":"Silicon Cloud Blog","url":"https:\/\/www.silicloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","contentUrl":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","width":1024,"height":1024,"caption":"Silicon Cloud Blog"},"image":{"@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SiliCloudGlobal\/","https:\/\/twitter.com\/SiliCloudGlobal"]},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/2e83cc6ab9f60d36921c2d0f9f280f4a","name":"Noah Thompson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/350e537e1530ede2762ee0237e877d6693f4f7163ab4f303202cc9a6b27b6cb4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/350e537e1530ede2762ee0237e877d6693f4f7163ab4f303202cc9a6b27b6cb4?s=96&d=mm&r=g","caption":"Noah Thompson"},"url":"https:\/\/www.silicloud.com\/blog\/author\/noahthompson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/28499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=28499"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/28499\/revisions"}],"predecessor-version":[{"id":62801,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/28499\/revisions\/62801"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=28499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=28499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=28499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}