Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and use of kudu

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "installation and use of kudu". In daily operation, I believe many people have doubts about the installation and use of kudu. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "installation and use of kudu". Next, please follow the editor to study!

Apache Kudu is an open source storage engine by Cloudera, which can provide both low latency random read and write and efficient data analysis capabilities. Kudu supports horizontal scaling, uses Raft protocol to ensure consistency, and is closely integrated with popular big data query and analysis tools such as Cloudera Impala and Apache Spark.

We need to add the kudu data source http://archive.cloudera.com/kudu/ubuntu/xenial/amd64/kudu/cloudera.list to our source and add it to / etc/apt/sources.list:

Then we add the public key, download http://cloudera-fastly-s3-2.s3-website-us-west-1.amazonaws.com/kudu/ubuntu/xenial/amd64/kudu/archive.key, use sudo apt-key add archive.key, and then update with sudo apt update. If there is an error, check to see if the version is correct.

Then we can simply use apt to install:

Sudo apt-get install kudu # Base Kudu files

Sudo apt-get install kudu-master # Service scripts for managing kudu-master

Sudo apt-get install kudu-tserver # Service scripts for managing kudu-tserver

Sudo apt-get install libkuduclient0 # Kudu C++ client shared library

Sudo apt-get install libkuduclient-dev # Kudu C++ client SDK

Then start our kudu service:

Sudo service kudu-master start

Sudo service kudu-tserver start

At this time, we can import and export ip:8051 in the browser, and we can see the following page and click on it at will:

Because we have a single point of deployment and no copy, there may be such an error CAUSED BY: NonRecoverableException: Not enough live tablet servers to create a table with the requested replication factor 3. 1 tablet servers are alive. We need to add and restart in the following configuration:

/ etc/kudu/conf/master.gflagfile

/ etc/kudu/conf/tserver.gflagfile

Configuration added:

-- unlock_unsafe_flags=true

-- allow_unsafe_replication_factor=true

-- default_num_replicas=1

Restart the service:

Service kudu-master restart

Service kudu-tserver restart

Let's write a demo and add the following dependencies:

Like many services, we establish a kudu connection:

Then you need to create a table:

Then we can see the following on the page just now:

Then we can add some data:

At this point, the study on "installation and use of kudu" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report