Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Falcon/Storm/Flume not Installed Properly as i am not able to Start/Stop Services .

avatar
Contributor

3079-install-error.jpg

How can i delete these services and install again?

1 ACCEPTED SOLUTION

avatar

@Ajay Kuppachi

You need to use something like the below one .

curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/clusters/HDP_QA/services//FLUME_HANDLER

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://localhost:8080/api/v1/clusters/HDP_QA/services/FALCON_SERVER

here are the list of components names Ambari understands,

[ { "name" : "KAFKA_BROKER" }, { "name" : "SUPERVISOR" }, { "name" : "METRICS_MONITOR" }, { "name" : "FLUME_HANDLER" }, { "name" : "SQOOP" }, { "name" : "YARN_CLIENT" }, { "name" : "FALCON_CLIENT" }, { "name" : "HDFS_CLIENT" }, { "name" : "OOZIE_CLIENT" }, { "name" : "YARN_CLIENT" }, { "name" : "ZOOKEEPER_CLIENT" }, { "name" : "HIVE_CLIENT" }, { "name" : "HCAT" }, { "name" : "MAPREDUCE2_CLIENT" }, { "name" : "HBASE_CLIENT" } ],

{ "name" : "NODEMANAGER" }, { "name" : "METRICS_MONITOR" }, { "name" : "DATANODE" }, { "name" : "SUPERVISOR" }, { "name" : "HBASE_REGIONSERVER"

{ "name" : "HBASE_MASTER" }, { "name" : "METRICS_MONITOR" }, { "name" : "ZOOKEEPER_SERVER" }, { "name" : "STORM_UI_SERVER" }, { "name" : "DRPC_SERVER" }, { "name" : "NIMBUS" }, { "name" : "WEBHCAT_SERVER" }, { "name" : "HIVE_SERVER" }, { "name" : "HIVE_METASTORE" }, { "name" : "TEZ_CLIENT" }, { "name" : "HCAT" }

{ "name" : "METRICS_MONITOR" }, { "name" : "METRICS_COLLECTOR" }, { "name" : "ZOOKEEPER_SERVER" }, { "name" : "HISTORYSERVER" }, { "name" : "APP_TIMELINE_SERVER" }, { "name" : "RESOURCEMANAGER" }, { "name" : "SECONDARY_NAMENODE" } { "name" : "NAMENODE" }, { "name" : "METRICS_MONITOR" }, { "name" : "ZOOKEEPER_SERVER" }

View solution in original post

8 REPLIES 8

avatar
Master Mentor

avatar
Contributor

I get below Error when i run GET

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/clusters/c1/services/FALCON { "status" : 404, "message" : "Parent Cluster resource doesn't exist. Cluster not found, clusterName=c1. Cluster not found, clusterName=c1"

avatar
Master Mentor

What is the cluster name you gave to your cluster? Replace c1 with that name.

avatar
Contributor

My bad i replaced with clustername

{ "status" : 404, "message" : "The requested resource doesn't exist: Service not found, clusterName=HDP_QA, serviceName=Flume"

avatar
Master Mentor

Service names are in upper case, do query with this first curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/clusters/c1/services/

Make a note of all services you have, then do a get on individual services, replace cluster name in my query

avatar
Super Guru

@Ajay Kuppachi In case, if you are not able to delete the service using api then you need to check the service state in ambari database. Below are commands for same -

# psql -U ambari <= [password will be - bigdata, unless you have customize it.] ambari=>select * from servicedesiredstate where service_name='<service-name>' eg. ambari=>select * from servicedesiredstate where service_name='KNOX'

ambari=>select * from servicecomponentdesiredstate where service_name='<service-name>';

ambari=>select * from hostcomponentstate where service_name='<service-name>';

ambari=>select * from hostcomponentdesiredstate where service_name='<service-name>';

ambari=>quit;

You need to update the state accordingly.

Thanks

Sagar

avatar
Contributor

I don't see these service_names on below tables

SERVICECOMPONENTDESIREDSTATE

HOSTCOMPONENTDESIREDSTATE

HOSTCOMPONENTSTATE

but i see those services under clusterservices Tables

Thanks,

Ajay

avatar

@Ajay Kuppachi

You need to use something like the below one .

curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8080/api/v1/clusters/HDP_QA/services//FLUME_HANDLER

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://localhost:8080/api/v1/clusters/HDP_QA/services/FALCON_SERVER

here are the list of components names Ambari understands,

[ { "name" : "KAFKA_BROKER" }, { "name" : "SUPERVISOR" }, { "name" : "METRICS_MONITOR" }, { "name" : "FLUME_HANDLER" }, { "name" : "SQOOP" }, { "name" : "YARN_CLIENT" }, { "name" : "FALCON_CLIENT" }, { "name" : "HDFS_CLIENT" }, { "name" : "OOZIE_CLIENT" }, { "name" : "YARN_CLIENT" }, { "name" : "ZOOKEEPER_CLIENT" }, { "name" : "HIVE_CLIENT" }, { "name" : "HCAT" }, { "name" : "MAPREDUCE2_CLIENT" }, { "name" : "HBASE_CLIENT" } ],

{ "name" : "NODEMANAGER" }, { "name" : "METRICS_MONITOR" }, { "name" : "DATANODE" }, { "name" : "SUPERVISOR" }, { "name" : "HBASE_REGIONSERVER"

{ "name" : "HBASE_MASTER" }, { "name" : "METRICS_MONITOR" }, { "name" : "ZOOKEEPER_SERVER" }, { "name" : "STORM_UI_SERVER" }, { "name" : "DRPC_SERVER" }, { "name" : "NIMBUS" }, { "name" : "WEBHCAT_SERVER" }, { "name" : "HIVE_SERVER" }, { "name" : "HIVE_METASTORE" }, { "name" : "TEZ_CLIENT" }, { "name" : "HCAT" }

{ "name" : "METRICS_MONITOR" }, { "name" : "METRICS_COLLECTOR" }, { "name" : "ZOOKEEPER_SERVER" }, { "name" : "HISTORYSERVER" }, { "name" : "APP_TIMELINE_SERVER" }, { "name" : "RESOURCEMANAGER" }, { "name" : "SECONDARY_NAMENODE" } { "name" : "NAMENODE" }, { "name" : "METRICS_MONITOR" }, { "name" : "ZOOKEEPER_SERVER" }