Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2725 | 04-27-2020 03:48 AM | |
| 5285 | 04-26-2020 06:18 PM | |
| 4450 | 04-26-2020 06:05 PM | |
| 3576 | 04-13-2020 08:53 PM | |
| 5380 | 03-31-2020 02:10 AM |
08-22-2017
01:26 AM
1 Kudo
@L Hurley Can you please try the following to see if it works: 1. SSH on port 2222 to Sandbox. The default password will be "hadoop". If you face any error/exception while doing the ssh as following then please paste the output/error. # ssh root@127.0.0.1 -p 2222 2. Please chekc if you are able to access the web terminal? http://127.0.0.1:4200 3. Many times it happens that during the Sandbox startup some services are not started properly that causes ports not getting opened properly. So please try restarting the Sandbox image (Power off and power on) then again try the step 1 & 2 as mentioned above. .
... View more
08-21-2017
05:36 AM
@sudarshan kumar Can you please share the Whole "io.serializations" property configuration from "core-site.xml", Looks like it is not set properly. - I remember one such issue with the "io.serializations" property definition had a <final>true</final> in it which was causing issue. Please check if you have similar issue. Please try removing the <final>true</final> tag line if you find it inside your "io.serializations" property definition. OR the value of this property might not be set properly. .
... View more
08-20-2017
09:59 AM
@uri ben-ari No, When you plan to update the values, then you should replace the "%HOSTGROUP::host_group_1%" and " %HOSTGROUP::host_group_4%" placeholders with the actual Hostnames. . Example: (using Sandbox Values here for example) # /var/lib/ambari-server/resources/scripts/configs.sh set localhost Sandbox webhcat-site "templeton.hive.properties" "hive.metastore.local=false,hive.metastore.uris=thrift://sandbox.hortonworks.com:9083,hive.metastore.sasl.enabled=false,hive.metastore.execute.setugi=true,hive.metastore.warehouse.dir=/apps/hive/warehouse" .
... View more
08-20-2017
09:44 AM
@uri ben-ari Just updated the other thread.
... View more
08-20-2017
09:42 AM
@uri ben-ari You are seeing the values containing the "%HOSTGROUP::host_group_4" instead of actual hostname, This is because you might have created the cluster using blueprint. Inside the blueprint these placeholders are usually used. . - Please check which tag version config are you checking? Is it INITIAL , TOPOLOGY_RESOLVED or any specific version like "version1503221811491297915" ? http://localhost:8080/api/v1/clusters/Sandbox/configurations?type=webhcat-site&tag=INITIAL http://localhost:8080/api/v1/clusters/Sandbox/configurations?type=webhcat-site&tag=TOPOLOGY_RESOLVED http://localhost:8080/api/v1/clusters/Sandbox/configurations?type=webhcat-site&tag=version1503221811491297915 - We can set any specific property value of any config type using "config.sh set" command. Syntax: /var/lib/ambari-server/resources/scripts/configs.sh set $AMBARI_HOST $CLUSTER_NAME webhcat-site $KEY $VALUE Example: If we want to change the "templeton.exec.timeout" property value then we can use "set" command as following: /var/lib/ambari-server/resources/scripts/configs.sh set localhost Sandbox webhcat-site "templeton.exec.timeout" "60001" . Reference: https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
... View more
08-20-2017
08:17 AM
@uri ben-ari To list all the service status # curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state | grep -A 1 'service_name' . If you want to see only the services that are stopped (means in INSTALLED state) then you can try the following command: # curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state | grep -B 1 'INSTALLED' . Example Output: # curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET http://localhost:8080/api/v1/clusters/Sandbox/services?fields=ServiceInfo/state | grep -B 1 'INSTALLED'
"service_name" : "AMBARI_INFRA",
"state" : "INSTALLED"
--
"service_name" : "AMBARI_METRICS",
"state" : "INSTALLED"
--
"service_name" : "ATLAS",
"state" : "INSTALLED"
--
"service_name" : "FALCON",
"state" : "INSTALLED"
--
"service_name" : "HBASE",
"state" : "INSTALLED"
--
"service_name" : "HDFS",
"state" : "INSTALLED"
--
"service_name" : "KAFKA",
"state" : "INSTALLED"
--
"service_name" : "KNOX",
"state" : "INSTALLED"
--
"service_name" : "LOGSEARCH",
"state" : "INSTALLED"
--
"service_name" : "PIG",
"state" : "INSTALLED"
--
"service_name" : "SLIDER",
"state" : "INSTALLED"
--
"service_name" : "SMARTSENSE",
"state" : "INSTALLED"
--
"service_name" : "SQOOP",
"state" : "INSTALLED"
--
"service_name" : "STORM",
"state" : "INSTALLED"
--
"service_name" : "TEZ",
"state" : "INSTALLED"
--
"service_name" : "ZOOKEEPER",
"state" : "INSTALLED"
. Here please replace the following: 1. "localhost" : with the Ambari FQDN 2. 8080 : with ambari port. 3. Sandbox : With cluster Name. . Reference: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=41812517
... View more
08-20-2017
06:45 AM
1 Kudo
@Jacqualin jasmin As we see that your passwords are encrypted, Because you mght have the "security.passwords.encryption.enabled" property set to true inside your ambari.properties. # grep 'passwd' /etc/ambari-server/conf/ambari.properties
server.jdbc.rca.user.passwd=${alias=ambari.db.password}
server.jdbc.user.passwd=${alias=ambari.db.password} Assuming you remember your old ambari db pasword (by default it shoudl be "bigdata"), And you want to change the DB password to something new like "bigdata_new" # mysql -u ambari -p
Enter password: bigdata
mysql> use ambari;
mysql> SET PASSWORD FOR 'ambari'@'localhost' = PASSWORD('bigdata_new');
mysql> SET PASSWORD FOR 'ambari'@'%' = PASSWORD('bigdata_new');
mysql> SET PASSWORD FOR 'ambari'@'standaloneambari1.example.com' = PASSWORD('bigdata_new');
mysql> FLUSH PRIVILEGES; REMEMBER: in the following statement you will need to enter your ambari DB hostname while resetting the DB password. Here standalone1.example.com is the FQDN (hostname -f) where my MySQL DB was running. mysql> SET PASSWORD FOR 'ambari'@'standaloneambari1.example.com' = PASSWORD('bigdata_new'); . Steps from ambari side: First of all please take a backup of ambari properties file # cp -f /etc/ambari-server/conf/ambari.properties /etc/ambari-server/conf/ambari.properties.ORIGINAL . Once the password is changed from the DB side then edit the "/etc/ambari-server/conf/ambari.properties" file and change the value of "server.jdbc.rca.user.passwd" and "server.jdbc.user.passwd" property as following: # grep 'passwd' /etc/ambari-server/conf/ambari.properties
server.jdbc.rca.user.passwd=/etc/ambari-server/conf/password.dat
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat Create a file with name "/etc/ambari-server/conf/password.dat" and enter the new Ambari Database password there. Like: # echo "bigdata_new" > /etc/ambari-server/conf/password.dat
# cat /etc/ambari-server/conf/password.dat
bigdata_new Restart ambari server to see if it is starting fine with the newly retested ambari db password or not? # ambari-server restart . If everything is OK so far then do the following: If ambari server starts fine then we can now proceed with "Encrypting the password" again using "ambari-server setup-security" option [2] Encrypt passwords stored in ambari.properties file. # ambari-server setup-security
Using python /usr/bin/python
Security setup options...
===========================================================================
Choose one of the following options:
[1] Enable HTTPS for Ambari server.
[2] Encrypt passwords stored in ambari.properties file.
[3] Setup Ambari kerberos JAAS configuration.
[4] Setup truststore.
[5] Import certificate to truststore.
===========================================================================
Enter choice, (1-5): 2
Password encryption is enabled.
Do you want to reset Master Key? [y/n] (n): n
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup-security' completed successfully. Once this is done we should see that the password is again encrypted. # grep 'passwd' /etc/ambari-server/conf/ambari.properties
server.jdbc.rca.user.passwd=${alias=ambari.db.password}
server.jdbc.user.passwd=${alias=ambari.db.password} . Now restart ambari server # ambari-server restart .
... View more
08-18-2017
06:35 PM
@Winnie Philip Also it is strange to see that you are trying to install Ambari Server (which ideally comes from ambari repo, Not from the HDP repo) but the error shows that it is trying to retrieve file from hdp repo (hdp/HDP/centos7/repodata/repomd.xml). Can you please check the http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml . Can you please check the repos are correct or not? # cat /etc/yum.repos.d/ambari.repo .
... View more
08-18-2017
06:32 PM
1 Kudo
@Winnie Philip It looks like more of a Web Server issue where you installed the local repository. Can you please check if you are able to get the repomd.xml file using wget/curl from abari server host? # wget http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml
OR
# curl http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml . If above does not work and gives same 403 response. Then you will need to check your Proxy configuration Or Proxy username / password. Please check if there is any proxy server configured which requires proxy credentials? If yes then add the credentials something like following inside your "/etc/profile" OR inside "~/.bash_profile" file of all hosts with the correct proxy username / password and port. export http_proxy=http://USERNAME:PASSWORD@proxy.com:80 . Reference: https://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/
... View more
08-18-2017
10:51 AM
@uri ben-ari curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://198.23.45.23:8080/api/v1/clusters/HDP01/requests/134 . Here 134 will be the request ID that you got from the previous command output. The output contain the request status as following: (Or IN_PROGRESS is the start is going on) "request_status" : "COMPLETED", .
... View more