Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2455 | 04-27-2020 03:48 AM | |
4896 | 04-26-2020 06:18 PM | |
3980 | 04-26-2020 06:05 PM | |
3226 | 04-13-2020 08:53 PM | |
4935 | 03-31-2020 02:10 AM |
01-13-2019
10:11 PM
1 Kudo
@Enrique Benito Casado It might be possible that you might be running some other services on your laptop like Oracle Database or some other tomcat server thats why it might be consuming the port 8080 which is supposed to be used by Ambari. So please run the netstat command on your Laptop (local machine) to findout if port 8080 is being utilized by any other process or not? The other wayt to quickly verify the same will be to "Stop the Sandbox" instance and then try to access port 8080 to see if you are still able to access the "Apache Tomcat/ 9.0.8" page? If yes then that means that page is coming from some process running on your local machine instead of sandbox (because Sandbox is not running currently). .
... View more
01-10-2019
08:56 PM
@Kunal Kumar As you are getting the following error: NetUtil.py:96 - [Errno 8] _ssl.c:504: EOF occurred in violation of protocol . To solve this problem simply configure the Ambari Agent to use TLSv1.2 when communicating with the Ambari Server by editing each Ambari Agent’s /etc/ambari-agent/conf/ambari-agent.ini file and adding the following configuration property to the security section: [security]
force_https_protocol=PROTOCOL_TLSv1_2 . Refer to a detailed explanation on this flag in the following article: https://community.hortonworks.com/articles/188269/javapython-updates-and-ambari-agent-tls-settings.html . Regarding your query "how to find /python/cert-verificatin.cfg" ? There is no need to set the verify=disable for this issue . However if you want to do it then you will have to manually create the mentioned file with the verify=disable.
... View more
01-10-2019
06:11 AM
@Abhijeet Kumar Have you executed the following query on your MySQL DB to grant 'registry'@'localhost' access? Like: https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.1/bk_installing-hdf-and-hdp-ppc/content/database-config-mysql.html
# mysql -u root -p
Enter Password:
mysql> use mysql;
mysql> GRANT ALL PRIVILEGES ON registry.* TO 'registry'@'%' WITH GRANT OPTION ;
mysql> GRANT ALL PRIVILEGES ON registry.* TO 'registry'@'localhost' WITH GRANT OPTION ;
mysql> FLUSH PRIVILEGES; .
... View more
01-09-2019
10:04 PM
@Lokesh Mukku Means Ranger DB test connection passed however Ranger Admin component could not come up hence the Curl Call to http://nn.hadoop.com:6080/login.jsp URL is failing. So please check the Ranger Admin logs to find any error.
... View more
01-09-2019
09:24 PM
1 Kudo
@Lokesh Mukku Your error indicates that the user ranger '@'% does not have access to 'mysql' DB. Hence you will need to properly grant the user. SQLException : SQL state: 42000 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'ranger'@'%' to database 'mysql' ErrorCode: 1044 Have you already performed the MySQL DB side prerequisite before using Ranger with MySQL? Like giving proper grant to "ranger" user ? CREATE USER 'ranger'@'localhost' IDENTIFIED BY 'ranger';
GRANT ALL PRIVILEGES ON *.* TO 'ranger'@'localhost';
CREATE USER 'ranger'@'%' IDENTIFIED BY 'ranger';
GRANT ALL PRIVILEGES ON *.* TO 'ranger'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'ranger'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'ranger'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES; . Please refer to the following doc for more information: https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation/content/configuring_mysql_for_ranger.html For validating what kind of grants the user has, you can run the following SQL query on your mysql db mysql> SELECT user, host FROM user WHERE user like 'range%' ; .
... View more
01-09-2019
04:59 AM
@VISHAL SINGH Seems featuer request is still open : https://issues.apache.org/jira/browse/KAFKA-2629 https://cwiki.apache.org/confluence/display/KAFKA/KIP-76+Enable+getting+password+from+executable+rather+than+passing+as+plaintext+in+config+files
... View more
01-08-2019
02:20 PM
@Kunal Kumar As we see the message as following in your "ambari-server.log" Host: hdpnode1.hortonworks.com Can not be determined . Which means your ambari server hosts "/etc/hosts" file does not have mapping for the "hdpnode1.hortonworks.com" Also as we see that you are using Sandbox which is suitable for a Single Node cluster only (as it runs inside a docker container hence all the ports of it are not exposed externally) Hence please make sure that from ambari agent host you can access ambari server host and port 8440 / 8080 Also the "/etc/hosts" file on ambari server host contains the IP and host mapping for "hdpnode1.hortonworks.com"
... View more
01-08-2019
02:20 PM
@Kunal Kumar The problem seems to be the incorrect "SSH Private Key". Based on screenshot "screenshot-from-2018-12-28-18-23-15.png" looks like you are pasting the "Public" key content there instead of "Private Key" of the host "hdpnode1.hortonworks.com" For example the following will be the Private Key: "~/.ssh/id_rsa" adn the content of private key file looks something like following which BEGIN and END marks: Example: -----BEGIN RSA PRIVATE KEY-----
ANCDEFGHIJKLMNOPoCUhgGazht5XrPbvkcD
.......
QRSTUVWXYZasdoeruoijlcsd,fns,cjsdklfjo=
-----END RSA PRIVATE KEY----- Usually Public key file name is "~/.ssh/id_rsa.pub" Also the Ambari API call is showing 404 because you will need to replace the "$name" with your clustername. You can get your ambari cluster name using the following API call. http://192.168.1.190:8080/api/v1/clusters .
... View more
01-08-2019
02:20 PM
@Kunal Kumar Ownership of the "~/.ssh" directory and the keys files should be something like following: # ls -l ~/.ssh/
total 20
-rw-------. 1 root root 818 Sep 12 08:03 authorized_keys
-rw-------. 1 root root 1679 May 22 2018 id_rsa
-rw-------. 1 root root 406 May 22 2018 id_rsa.pub
-rw-r--r--. 1 root root 1174 Sep 12 08:36 known_hosts
[root@newhwx1 ~]#
[root@newhwx1 ~]#
[root@newhwx1 ~]# ls -ld ~/.ssh/
drwx------. 2 root root 91 Sep 12 08:42 /root/.ssh/ . Please check if you are able to do passwordless SSH to the mentioned host properly or not without suppliying the password (except for the first time) You can also use the "ssh-copy-id" command to make sure that your correct public key is setup # ssh-copy-id -i ~/.ssh/id_rsa.pub root@hdpnode1.hortonworks.com . Then try using the passwordless SSH to see if it works? # ssh root@hdpnode1.hortonworks.com
. Regarding your query: how to replace " $name" with my clustername. The API calls the cluster name in your case is "Sandbox" so the correct Hosts call will be as following to list the hosts added to the cluster (Sandbox) http://192.168.1.190:8080/api/v1/clusters/Sandbox/hosts . Also pelase verify if you have the FQDN setup correctly for your Ambari Server host as well as for the host which you are adding recently to the cluster: # hostname -f
# cat /etc/hosts . If you still face any issue while doing host registration then please share the "Operation log" (the Complete error which you see in the ambari UI for failure)
... View more
01-08-2019
02:20 PM
@Kunal Kumar If you want to setup a multi node cluster then please refer to the following Hortonworks Youtube Video Hadoop Series- Part1 Multinode Hadoop Cluster Installation using Ambari : https://www.youtube.com/watch?v=wHaVBoLwzwU . Regarding the failure which you posted in your last comment is happening due to: File "/var/lib/ambari-agent/tmp/os_check_type1546513757.py", line 40, in main
raise Exception("Local OS is not compatible with cluster primary OS family.
Please perform manual bootstrap on this host.")
Exception: Local OS is not compatible with cluster primary OS family. Please perform manual bootstrap on this host. . Looks like you are trying to register a new host which has slightly different OS version/type. In that case we will suggest you to try using Manual Host installation & registration instead of doing it via Ambari UI. You can find the instructions to Manually Register Ambari Agenrt here: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-administration/content/install_the_ambari_agents_manually.html .
... View more