Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-27-2017 10:13 AM
i am setting component recovery by
curl -u admin:admin -H "X-Requested-By: ambari" -X PUT 'http://10.90.3.101:8080/api/v1/clusters/hdp_cluster/components?ServiceComponentInfo/component_name.in(APP_TIMELINE_SERVER,DATANODE,HBASE_MASTER,HBASE_REGIONSERVER,HISTORYSERVER,HIVE_METASTORE,HIVE_SERVER,MYSQL_SERVER,NAMENODE,NODEMANAGER,RESOURCEMANAGER,SECONDARY_NAMENODE,WEBHCAT_SERVER,ZOOKEEPER_SERVER)' -d '{"ServiceComponentInfo" : {"recovery_enabled":"true"}}'
but it seems the spark history serve doesn't match SPARK_HISTORY_SERVER or SPARK_HISTORY or SPARK_SERVER
what is its name?
or how can i get all the COMPONENTS'NAME?
Created 07-27-2017 10:20 AM
You can get it with below API
spark history server component name is SPARK_JOBHISTORYSERVER
curl -XGET -u admin:admin https://hostname:8443/api/v1/clusters/<clusterName>/components
Created 07-27-2017 10:20 AM
You can get it with below API
spark history server component name is SPARK_JOBHISTORYSERVER
curl -XGET -u admin:admin https://hostname:8443/api/v1/clusters/<clusterName>/components
Created 07-27-2017 10:41 AM
thank you! the name works.
but the command i didn't work through.
does the url equals https:// or service host>:<ambari port or component port>???
if it is ambari:ambari
i got "curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received."
Created 07-27-2017 11:02 AM
try below command
curl -XGET -u admin:admin http://10.90.3.101:8080/api/v1/clusters/hdp_cluster/components
Created 07-27-2017 11:04 AM
Please accept the answer, if it has solved your question