Member since
11-07-2016
637
Posts
253
Kudos Received
144
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2721 | 12-06-2018 12:25 PM | |
| 2863 | 11-27-2018 06:00 PM | |
| 2194 | 11-22-2018 03:42 PM | |
| 3567 | 11-20-2018 02:00 PM | |
| 6276 | 11-19-2018 03:24 PM |
01-05-2018
10:46 AM
@yassine sihi, Can you please try installing the client using this command and see if it works curl -k -u {username}:{password} -H "X-Requested-By:ambari" -i -X PUT -d '{"HostRoles": {"state": "INSTALLED"}}' http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{hostname}/host_components/HBASE_CLIENT Replace hostname with the host where it is failing. Thanks, Aditya
... View more
01-05-2018
04:48 AM
@Amogh Suman, There was a comment for this question which you might have deleted. I saw that you mentioned (/etc/ambari-server/conf/log4j.properties) file was missing. Can you please create the file and put the content of log4j.txt attached and try restarting ambari server. chmod 755 /etc/ambari-server/conf/log4j.properties ambari-server restart log4j.txt Thanks, Aditya
... View more
01-04-2018
06:31 PM
1 Kudo
@Michael Bronson, You can use these curl calls to run all the service checks and check the status To run service checks curl -ivk -H "X-Requested-By: ambari" -u {ambari-username}:{ambari-password} -X POST -d @payload.txt http://{ambari-server}:{ambari-port}/api/v1/clusters/{cluster-name}/request_schedules
Sample response:
{
"resources": [
{
"href": "http://<ambari-server>:8080/api/v1/clusters/<clustername>/request_schedules/68",
"RequestSchedule": {
"id": 68 // This is the request-schedule-id to be used for second call
}
}
]
}
<br> Note: Download the attached payload.txt to some folder and run the above command from the same folder. To get status of service checks curl -ivk -H "X-Requested-By: ambari" -u {ambari-username}:{ambari-password} -X GET http://{ambari-server}:{ambari-port}/api/v1/clusters/{cluster-name}/request_schedules/{request-schedule-id} To get the status of each service, iterate through batch_requests array in the response and look for 'request_status' inside each object. COMPLETED is for passed, FAILED for failed, ABORTED if service check is aborted.payload.txt Note: request-schedule-id for the second curl call is obtained from the response of 1st call. Thanks, Aditya
... View more
01-04-2018
04:51 PM
1 Kudo
@Michael Bronson, This article provides you the necessary steps in detail. Hope this helps https://community.hortonworks.com/articles/11852/ambari-api-run-all-service-checks-bulk.html https://gist.github.com/mr-jstraub/0b55de318eeae6695c3f#payload-to-run-all-service-checks Thanks, Aditya
... View more
01-04-2018
03:16 PM
@Amogh Suman, Try changing it from the backend and login # psql -U ambari -d ambari
Password for user ambari: bigdata
ambari=> update ambari.users set user_password='538916f8943ec225d97a9a86a2c6ec0818c1cd400e09e03b660fdaaec4af29ddbb6f2b1033b81b00' where user_name='admin';
ambari=> \q
# ambari-server restart password is 'admin' Thanks, Aditya
... View more
01-04-2018
02:19 PM
@Amogh Suman, Run the below commands and check if you are able to open Pig view echo "bigdata" > /etc/ambari-server/conf/password.dat
ambari-server restart Thanks, Aditya
... View more
01-04-2018
08:24 AM
@Anurag Mishra, Please put the table name in quotes ('') # hbase shell
hbase(main):014:0> list # This will list all tables
hbase(main):014:0> list 'table_name' # List only a single table name
hbase(main):014:0> scan 'table_name' # Get contents of the file.
Thanks, Aditya
... View more
01-04-2018
03:32 AM
1 Kudo
@Michael Bronson, Yes. You can use the second way to achieve your task. You can also use the below to check if namenode is in SafeMode and leave conditionally. su - hdfs -c "hdfs dfsadmin -safemode get" | grep ON
if [ $? -ne 0 ]
then
su - hdfs -c "hdfs dfsadmin -safemode leave"
fi To run the above script, put the content in a file say xyz.sh chmod +x xyz.sh
./xyz.sh Thanks, Aditya
... View more
01-03-2018
05:55 PM
1 Kudo
@Shravan Kumar, Can you please run this command and check the output. If it is kerberized environment , run kinit before running the command oozie admin -oozie http://{oozie-host}:11000/oozie -shareliblist If the above command doesn't return output like below then run the below mentioned commands as well. Make sure that the below list is returned [Available ShareLib]
hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig
spark_orig Create the share lib # /usr/hdp/<HDP Version>/oozie/bin/oozie-setup.sh sharelib create -fs hdfs://${NAMENODE-HOST}:8020 Update Sharelib # oozie admin -oozie http://{oozie-host}:11000/oozie -sharelibupdate Thanks, Aditya
... View more
01-03-2018
02:32 PM
@Michael Bronson, To get state of Active Namenode curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{active-namenode-host-name}/host_components/NAMENODE?fields=HostRoles/state To get state of StandBy Namenode curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{standby-namenode-host-name}/host_components/NAMENODE?fields=HostRoles/state To get state of App Timeline Server curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/components/APP_TIMELINE_SERVER?fields=ServiceComponentInfo/state Note that you have to replace Active Namenode and standby Namenode hostnames in the URLs Thanks, Aditya
... View more