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

Ubuntu 1604 build hdp2.4 Hadoop

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

First of all, refer to the offline installation tutorial:

Http://www.jianshu.com/p/debf0e6a3f3b

It says it is for the ubuntu1404 version, but 1604 can also be installed.

Download on Xunlei and copy it to the server, follow the tutorial, start the http server, build the local source, apt-get install ambari-server.

It's all easy, but there are some things that need to be set manually at the beginning of ambari-server setup. Of course, if you enter all the way, he will download oraclejdk for you by default, and it's easy to use postgresql, but it hurts if you want to use your own mysql and jdk.

1. First, create user ambari and database ambari in the database.

CREATE USER 'ambari'@'localhost' IDENTIFIED BY' password'

UPDATE user SET password=PASSWORD ("bigdata") WHERE user='ambari'

Grant all on *. * to 'ambari'@'%' identified by "pass"

Flush privileges

Create database ambari

2. Then follow the prompts in setup to select the jdk path (in fact, if you find it slow to jdk on the command line, you can also copy its address manually to copy it over in Thunderbolt) and mysql. After selecting mysql, he will install java-odbc.

Apt-get install libmysql-java

Then he will ask you to execute / var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql

Log in to the database source, but there will be errors if the key is too long. "ERROR 1071 (42000) at line 434 in file:'/ var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql': Specified key was too long; max key length is 767 bytes"

I don't know if there's a problem.

Update: sure enough, the report failed after starting ambari.

Resolve:

Because the version character I use is utf-8 (3byte one character) encoding, mysql also uses this, but ambari is foreign. The default is gbk2312 (one character for 2byte) or latin1 (one character for 1byte), and then the setting of vchar will be very large. Without changing his sql script, just change your data to latin1.

3. After setup executes success, you can ambari-server start. Unfortunately, there are still some errors.

Error report: ambari com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

If there is no problem with link failure, it is necessary to change the address in the configuration file my.cnf of mysql from 127.0.0.1 to 0.0.0.0 and restart to solve it.

The new reason is that the host name in hosts has not been corrected, and it will be fine after correction.

4. Then I encountered an error from ambari access deny. I changed the ambari password in the database, and this time start was finally successful.

5. You can now go to the web page to start the installation and configuration node build.

0824 Update:

When he starts to deploy the build in the last step, he will check your current os version, which is a huge pit, and the method I use is

Vim / usr/lib/ambari-agent/lib/ambari_commons/os_check.py

Add this sentence before return distribution

Distribution = ('Ubuntu',' 14.04percent, 'trusty')

And then you can go all the way.

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

Internet Technology

Wechat

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

12
Report