Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

what's the spark history server 's name?

Solved Go to solution
Highlighted

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

Accepted Solutions
Highlighted

Re: what's the spark history server 's name?

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
Highlighted

Re: what's the spark history server 's name?

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

Highlighted

Re: what's the spark history server 's name?

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

Highlighted

Re: what's the spark history server 's name?

try below command

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

Re: what's the spark history server 's name?

Please accept the answer, if it has solved your question

Don't have an account?
Coming from Hortonworks? Activate your account here