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]

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