Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

what's the spark history server 's name?

avatar
Visitor

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

avatar

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

avatar

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

avatar
Visitor

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

avatar

try below command

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

avatar

Please accept the answer, if it has solved your question