Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2717 | 04-27-2020 03:48 AM | |
| 5278 | 04-26-2020 06:18 PM | |
| 4445 | 04-26-2020 06:05 PM | |
| 3567 | 04-13-2020 08:53 PM | |
| 5377 | 03-31-2020 02:10 AM |
09-04-2018
05:26 AM
@Michael Bronson What do you see when you run the following command? # su - hdfs -c " hdfs dfsadmin -report | grep 'DFS Used%' (OR) Please check the "DFS Used" shown in the NameNode UI to verify if ambari is shoiwng the same data or different? : http://$ACTIVE_NAMENODE:50070/dfshealth.html#tab-overview
... View more
09-04-2018
01:35 AM
@Michael Bronson The HDFS dashboard metrics widget "HDFS Disk Usage" shows: \The percentage of distributed file system (DFS) used, which is a combination of DFS and non-DFS used. So can you just put your mouse over the "HDFS Disk Usage" widget and then see what is the different values do you see there for "DFS Used" , "non DFS Used" and Remaining. You should see something like following: .
... View more
09-03-2018
11:22 AM
@Mahesh
Chaudhary
Wonderful !!! Good to know that you have found the script. It will be great if you can click on the "Accept" button on the correct answer here to mark this threads as answered, that way other HCC users can quickly find and browse the answer quickly.
... View more
09-03-2018
09:49 AM
@Michael Bronson By "latest restart status" do you mean a particular "Component" restart (like NameNode, DataNode..etc) Or a particular Service Restart ("HDFS" service / Yarn Service restart status?)
... View more
09-03-2018
09:45 AM
@Mahesh
Chaudhary
Are you using Correct SSH port to connect to the HDP VM (2122)? # ssh root@127.0.0.1 -p 2122
root@127.0.0.1's password: hadoop
.
.
#### In order to find a file, please try using the "locate" command.
# yum install mlocate -y
# updatedb
# locate splash.py .
... View more
09-03-2018
08:22 AM
@Michael Bronson If you simply wants to know if the "Restart all required services" was successfully completed or not then you can simply make the same old API call as following: # curl -sH "X-Requested-By: ambari" -u admin:admin -X GET http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster/requests?fields=Requests/id,Requests/request_status,Requests/request_context | grep -A2 -B3 "Restart all required services" | grep 'request_status' . Either the operation will be COMPLETED or FAILED|ABORTED. # curl -sH "X-Requested-By: ambari" -u admin:admin -X GET http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster/requests?fields=Requests/id,Requests/request_status,Requests/request_context | grep -A2 -B3 "Restart all required services" | grep 'request_status'
"request_status" : "COMPLETED" .
... View more
09-03-2018
08:16 AM
@Anurag Mishra On Ambari Server host try to execute the following command manually to understand the issue. As the above log indicates that it is still facing some issue while executing that command: # /usr/bin/hdp-select status zeppelin-server # /usr/bin/hdp-select status phoenix-server
# /usr/bin/hdp-select . Please share the output of above commands.
... View more
09-03-2018
07:30 AM
@Anurag Mishra As you mentioned that "in other nodes hdp-select is working only on the ambari server node it is creating an issue ." So please check the Python version on Ambari server host. (looks liek it got updated recently to Python3) # python --version
# grep 'python' /var/log/yum.log .
... View more
09-03-2018
07:24 AM
@Anurag Mishra Are you sure you are using correct Python version? SyntaxError: Missing parentheses in call to 'print' The above error indicates that you might be using Python3. hdp_select.py was not compatible with python 3. Ambari 2.6.x Python requirement: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-installation/content/mmsr_software_reqs.html
... View more
09-03-2018
07:06 AM
1 Kudo
@Takefumi Oide In order to get more details about why this property was added and why is it needed inside the "namenode_upgrade.py" script, you can refer to the following JIRA: During HDP upgrade, Ambari does not allow redirecting the /tmp/upgrade directory elsewhere: https://issues.apache.org/jira/browse/AMBARI-18642 Code Changes: https://github.com/apache/ambari/commit/4b980f36a7de3f19e9bf8d5b8ae4f593931ec1f0 # grep 'namenode_backup_dir' /var/lib/ambari-server/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py
backup_destination_root_dir = "{0}/{1}".format(params.namenode_backup_dir, params.stack_version_unformatted)<br> .
... View more