Member since
02-10-2017
6
Posts
1
Kudos Received
0
Solutions
04-11-2017
03:32 AM
You got it, sir, and thanks. I am now tracing the related code, not feeling good. maybe you have sth. to share with me where-is-the-code-about-varlibambari-agentdatacomm
... View more
02-10-2017
01:05 PM
Here are steps to move SHS from one node to another. Replace admin:admpw with your user-name:password. Run on the Ambari server, or replace localhost with your Ambari server FQDN. Replace "mycluster" with your cluster name. Replace host2.example.com with your target node FQDN. Delete SHS component (it looks like you already did this so you can skip this step) $ curl -i -H "X-Requested-By:ambari" -u admin:admpw -X DELETE http://localhost:8080/api/v1/clusters/mycluster/services/SPARK/components/SPARK_JOBHISTORYSERVER Add SHS again $ curl -i -H "X-Requested-By:ambari" -u admin:admpw -X POST http://localhost:8080/api/v1/clusters/mycluster/services/SPARK/components/SPARK_JOBHISTORYSERVER Install host component on the new node: host2.example.com $ curl -i -u admin:admpw -H "X-Requested-By:ambari" -i -X POST -d '{"host_components" : [{"HostRoles":{"component_name":"SPARK_JOBHISTORYSERVER"}}] }'
http://localhost:8080/api/v1/clusters/mycluster/hosts?Hosts/host_name=host2.example.com In Ambari, Hosts --> host2.example.com, click on Spark History Server, and then "Reinstall" button In Ambari-->Spark, start Spark service, and run Spark service check
... View more