Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

what's the spark history server 's name?

Explorer

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?

1 ACCEPTED SOLUTION

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

View solution in original post

4 REPLIES 4

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

Explorer

@Santhosh B Gowda

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."

try below command

curl -XGET -u admin:admin http://10.90.3.101:8080/api/v1/clusters/hdp_cluster/components

Please accept the answer, if it has solved your question