Member since
09-17-2015
436
Posts
736
Kudos Received
81
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 5202 | 01-14-2017 01:52 AM | |
| 7538 | 12-07-2016 06:41 PM | |
| 8965 | 11-02-2016 06:56 PM | |
| 2872 | 10-19-2016 08:10 PM | |
| 7357 | 10-19-2016 08:05 AM |
01-12-2016
10:09 PM
2 Kudos
Note that the requests don't work if the service is in maintenance mode. So to be safe, I usually disable it before interacting with the service via API. This worked for me. Change the exported variables accordingly for your setup export SERVICE=HDFS
export PASSWORD=admin
export AMBARI_HOST=localhost
export CLUSTER=Sandbox
#get status
curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X GET http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE
#disable maintenance mode
curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Remove HDFS from maintenance mode"}, "Body": {"ServiceInfo": {"maintenance_state": "OFF"}}}' http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/HDFS
#stop service
curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop $SERVICE via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE
#start service
curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Start $SERVICE via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE
... View more
01-12-2016
05:52 PM
1 Kudo
Have you tried on HDP 2.3.4? Not sure if its related but there was an issues with phoenix-spark connector in previous minor versions of 2.3 versions due to PHOENIX-2040 being missed (here is the internal jira)
... View more
01-11-2016
05:18 PM
Thanks for letting us know. Solr is included with HDP Search with HDP 2.3. You install from repo using instructions here: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_search/index.html The official Solr stack service for Ambari is on the roadmap. Until then, for test/dev envs you can use one of these (not for use in prod envs): https://github.com/LucidWorks/solr-stack https://github.com/abajwa-hw/solr-stack
... View more
01-10-2016
08:16 PM
3 Kudos
In the Ranger audits page, try removing the default filter (for the current days audits). Sometimes if there is a time mismatch you won't see any audits in Ranger by default, but after clearing this filter they appear
... View more
01-10-2016
05:55 PM
1 Kudo
Don't think this is currently supported but we should get it logged as enhancement + @jeff to comment
... View more
01-10-2016
05:02 PM
2 Kudos
Try this https://community.hortonworks.com/articles/4479/ambari-jdk-update-process.html
... View more
01-10-2016
04:53 PM
Can you try HQDN or hostname/IP instead of localhost or 127.0.0.1 in the beeline connect string?
... View more
01-09-2016
07:43 PM
Could you provide details on what OS you are running and its version?
... View more
01-09-2016
08:46 AM
You can check @Randy Gelhausen's docker-ambari repo Also check this webinar recording to see a demo http://hortonworks.com/partners/learn/#dev
... View more
01-09-2016
12:43 AM
1 Kudo
Agent log is under /var/log/ambari-agent/ambari-agent.log but it sounds like you are still trying to install agents via Ambari UI. To install them manually use the instructions in the above doc (e.g. apt-get install ambari-agent) Then as the doc states, this is the property to set to point the agent to the ambari-server node $ cat /etc/ambari-agent/conf/ambari-agent.ini | grep hostname
hostname=sandbox.hortonworks.com Once the property is set, you can restart the agent
... View more