Member since
09-23-2015
151
Posts
110
Kudos Received
50
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1377 | 08-12-2016 04:05 AM | |
2720 | 08-07-2016 03:58 AM | |
1192 | 07-27-2016 06:24 PM | |
1719 | 07-20-2016 03:14 PM | |
1257 | 07-18-2016 12:54 PM |
01-12-2016
10:02 PM
If the request is not being denied, then my question should be changed. The REST request above used to work - but now on Ambari 2.2 it does not have any affect. Here is something else that is interesting - when I try to start all services using the following request: curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Start all services"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://namenode:8080/api/v1/clusters/horton/services?ServiceInfo this request gets accepted by Ambari, but here is what it does: That image is not cropped - all that happens is Pig, Slider, Sqoop and the Tez Client get installed. What I expected to see was all of my services starting. Again, this is based on the curl command above that I have used with Ambari 2.1 regularly.
... View more
01-12-2016
09:58 PM
Changing "services" to "requests" resulted in a bad request - maybe I need to change something else? I have never started a service using "requests" before: HTTP/1.1 400 Bad Request
{
"status" : 400,
"message" : "org.apache.ambari.server.controller.spi.UnsupportedPropertyException: The properties [ServiceInfo/state] specified in the request or predicate are not supported for the resource type Request."
}
... View more
01-12-2016
09:43 PM
1 Kudo
I am trying to startup services using the REST API on a newly-installed cluster named "horton" using Ambari 2.2.0.0. The following command used to work on prior versions of Ambari, but now it returns an error: $ curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Start HDFS"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://namenode:8080/api/v1/clusters/horton/services/HDFS The response I get back is: HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: admin
Set-Cookie: AMBARISESSIONID=zs3kuvep5dte6gie9q6lb5u5;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.17.v20150415)
Any help would be greatly appreciated. Thanks!
... View more
Labels:
- Labels:
-
Apache Ambari
01-04-2016
09:11 PM
1 Kudo
You need to view this page carefully - the current exam is on HDP 2.2 with Ambari 1.7: http://hortonworks.com/training/class/hdp-certified-developer-hdpcd-exam/ That can change at any time, but for now you should be prepared for that environment. The Sandbox can be helpful when practicing and learning Pig and Hive, but I would highly recommend you attempt the practice exam. It is on the same environment as the real exam and contains tasks similar to the real exam.
... View more
01-04-2016
08:41 PM
1 Kudo
How you run the script is irrelevant on the exam. If you can get it to work from the command line, then that is perfect.
... View more
01-04-2016
05:35 PM
Thanks. I logged in to it and everything looks fine. MySQL is running on the namenode, as expected, and I can run the mysql client to view the data in it. Let me know if you need any further assistance.
... View more
01-04-2016
05:01 AM
1 Kudo
Are you running Pig (or starting the Grunt shell) with the -useHCatalog flag?
... View more
01-03-2016
03:22 AM
1 Kudo
Because you are using the wrong class name for HCatLoader. It should be: org.apache.hive.hcatalog.pig.HCatLoader Let me know if that fixes your issue.
... View more
01-03-2016
03:22 AM
2 Kudos
Because you are using the wrong class name for HCatLoader. It should be: org.apache.hive.hcatalog.pig.HCatLoader Let me know if that fixes your issue.
... View more
01-03-2016
02:31 AM
1 Kudo
@Vidya SK: You do not need to use the REGISTER command to use any of the standard libraries, which includes the HCatLoader and HCatStorer class.
... View more