Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2003 | 06-15-2020 05:23 AM | |
| 16499 | 01-30-2020 08:04 PM | |
| 2159 | 07-07-2019 09:06 PM | |
| 8373 | 01-27-2018 10:17 PM | |
| 4744 | 12-31-2017 10:12 PM |
12-06-2018
01:28 AM
1 Kudo
@Michael Bronson Following API call will tell us how many DataNodes are live. # curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/HDFS/components/DATANODE?fields=ServiceComponentInfo/started_count,ServiceComponentInfo/total_count
"started_count": Shows the live (running) DataNodes. "total_count" : Shows how many DataNodes are there in the cluster. In order to find out the Individual DataNode Status you will need to supply the hostnames where the DataNodes are installed in the following API call. # curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/hosts/newhwx4.example.com/host_components/DATANODE?fields=HostRoles/host_name,HostRoles/state (OR other host) # curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/hosts/newhwx1.example.com/host_components/DATANODE?fields=HostRoles/host_name,HostRoles/state
... View more
12-04-2018
11:45 AM
2 Kudos
I can suggest, for 20 kafka machines you can go with 3 zookeeper servers
... View more
12-04-2018
07:25 PM
@Michael Bronson The page Designing a ZooKeeper explains that a 3 node cluster an survive 1 node failure. A 5 node cluster can survive 2 node failures.
... View more
12-04-2018
12:41 PM
hdp-select status | grep -i hdfs
hadoop-hdfs-client - 2.6.4.0-91
hadoop-hdfs-datanode - 2.6.4.0-91
... View more
11-18-2018
11:06 PM
@Jay chould you please help me with the follwing thred - https://community.hortonworks.com/questions/226622/rest-api-how-to-verify-the-max-value-for-each-para.html
... View more
11-19-2018
12:59 AM
UI uses Java Script to parse and process the bar values. I am afraid that using API call we can not get those values calculations. Mostly the recommendations comes from the "stack_advisor.py" script as following: https://github.com/apache/ambari/blob/release-2.6.2/ambari-server/src/main/resources/stacks/stack_advisor.py#L611-L613 .
... View more
11-05-2018
08:37 PM
@Jay thank you I will check this API on my cluster , meenhile can you please advice about my thred - https://community.hortonworks.com/questions/227204/avoid-kafka-disk-to-became-100-by-cron-job.html
... View more
10-23-2018
01:48 AM
[zk: localhost:2181(CONNECTING) 0] ls /
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1472)
at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1500)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:723)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:591)
at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:363)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)
You have mail in /var/spool/mail/root
[root@master01 ~]#
... View more
10-16-2018
04:24 PM
yes we run from the same node
... View more
10-08-2018
06:37 AM
1 Kudo
@Michael Bronson Did it work OK without the underscore? I'm curious and hope I didn't make you go through making a new lab for nothing 🙂 let me know if you still have any errors.
... View more