Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1597 | 06-15-2020 05:23 AM | |
11558 | 01-30-2020 08:04 PM | |
1745 | 07-07-2019 09:06 PM | |
7228 | 01-27-2018 10:17 PM | |
4030 | 12-31-2017 10:12 PM |
08-28-2017
09:02 PM
how to perform restart (on services/components) after we change around 50 parameters (blueprint parameters) in ambari cluster we change around 50 values in ambari cluster ( with config.sh script ) after that we restart by API all relevant services/components ( by API down) , but after half hour we get fail on some services/components so maybe the right thing is to perform restart after each value change ? ( in place to restart after all values are set ) ? or maybe need to restart the services/components according to some priority/rules ? example how we perform restart curl -iv -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operation_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' http://$HOSTANAME:8080/api/v1/clusters/$CLUSTER_NAME/requests
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
08-28-2017
08:44 PM
how to capture the last request ID from API , in order to trace the status ( as IN_PROCESS ) for example we run some API to restart a service , then I want to run API that will capture the last request ID example of request "id" {
"href" : "http://192.23.45.2.ur.com:8080/api/v1/clusters/HDP01/requests/17", "Requests" : {
"id" : 17, "status" : "Accepted"
}
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
08-28-2017
05:41 AM
is it possible to print as the following order amb25101.example.com 172.10.116.149 amb25102.example.com 172.10.116.15
... View more
08-28-2017
05:09 AM
the following API give only the hosts from the amabri server curl -sH "X-Requested-By: ambari" -u admin:admin -i http://localhost:8080/api/v1/hosts is it possible to change the API in way that we can get also the IP address for each host? the following example print only the hosts : curl -sH "X-Requested-By: ambari" -u admin:admin -i http://localhost:8080/api/v1/hosts | grep host_name | sed s'/"//g' | awk '{print $NF}' master01 master02 master03 worker01 worker02 expected results master01 192.9.200.12 master02 192.9.200.13 master03 192.9.200.14 worker01 192.9.200.15 worker02 192.9.200.16
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
08-27-2017
07:56 AM
the following API will restart all services that restart action is required ( after paramter changes ) but how to know if any service in ambari cluster need to restart by API ( I mean just to check if restart is needed without to perform restart ? ) # curl -iv -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operation_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' http://$AMBARI_SERVER:8080/api/v1/clusters/$CLUSTER_NAME/reques
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
08-22-2017
08:10 PM
hi all I need advice regarding the following problem my target is to guarantees that the leadership load across the brokers in a cluster is evenly balanced. sh /usr/hdp/2.6.0.3-8/kafka/bin/kafka-preferred-replica-election.sh --zookeeper zklist Failed to start preferred replica election
org.I0Itec.zkclient.exception.ZkException: Unable to connect to zklist
at org.I0Itec.zkclient.ZkConnection.connect(ZkConnection.java:71)
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1227)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:97)
at kafka.utils.ZkUtils$.createZkClient(ZkUtils.scala:70)
at kafka.admin.PreferredReplicaLeaderElectionCommand$.main(PreferredReplicaLeaderElectionCommand.scala:57)
at kafka.admin.PreferredReplicaLeaderElectionCommand.main(PreferredReplicaLeaderElectionCommand.scala)
Caused by: java.net.UnknownHostException: zklist: Temporary failure in name resolution
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61)
at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:446)
at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:380)
at org.I0Itec.zkclient.ZkConnection.connect(ZkConnection.java:69)
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Kafka
08-22-2017
06:10 PM
how to know by API command all machines in ambari cluster , example - master01,master02,master03,worker01,worker02,worker03,kafka01,kafka02 etc
... View more
Labels:
- Labels:
-
Apache Ambari
08-20-2017
06:35 PM
Jay - some of our ambari clusters are old ( they installed before 6-8 month ) , so what is the best approach to alignments the old ambari system ( I mean the parameters with the values ) so they will have the full parameters as our current ambari clusters ?
... View more
08-20-2017
02:38 PM
Jay - regarding my last question , is it possible to find out what are the parameters that we cant set from the config.sh script ? ( for example all params with % ? )
... View more
08-20-2017
10:07 AM
ok , I will tell you why I ask these questions , our target is to alignment old blueprint values ( usually they are ambari that installed last year or more ) with our current ambari blueprint values , so we make diff between the old amanari system to the new ambari system , and if values are diff then we replaced the old with the current value , so do you have suggestion regarding that some value in our current cluster are diff between the script output to the ambari cluster ? second - dose the - %HOSTGROUP::host_group , is only the one value that is diff between the script to the ambari GUI ? ( if not do we can identify all parameters that values from config.sh script will be diff from ambari GUI ? ) remark - we intend to set all amabri parameters ( old Amabri systems ) with the config.sh script
... View more