Category Archives: Rest API

Some Curl Commands for BigData

Writing to HDFS curl -i -X PUT -T $file -L “http://$namenode:50070/webhdfs/v1//$file?op=CREATE&$user” Reading from HDFS curl -i -X GET “http://$namenode:50070/webhdfs/v1//$file?op=OPEN” In a kerberized environment (Writing to HDFS) curl –negotiate -ku : -X PUT $file “http://:50070/webhdfs/v1//$file?op=CREATE&” OR curl -iku $userName:$password -L -T … Continue reading

Posted in Rest API, Uncategorized, webhdfs | Tagged , , , | Leave a comment


I would include important commands and other tips related to oozie here.. Trigger Workflow oozie job -oozie http://<host&gt;:11000/oozie -config /users/oozieTest/ooziePigTest/oozie-test/job/ -run Trigger Workflow Through REST API curl -X POST -H “Content-Type: application/xml” -d @oozie-testcurl.xml “http://<host&gt;:11000/oozie/v2/jobs?action=start” Trigger Coordinator oozie job -oozie http://<host&gt;:11000/oozie … Continue reading

Posted in oozie, Rest API, Tips | Tagged , , | Leave a comment

Hortonworks : Ambari Rest API tricks

Rest API allows us to perform operations in a cluster more conveniently.. Edit the following property in api.csrfPrevention.enabled=false Getting details about a service curl -u admin:admin -X GET http://AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services/SERVICENAME Eg:- curl -u admin:admin -X GET  http://10.xx.xx.xx:8080/api/v1/clusters/CLUSTERNAME/services/FALCON Deleting a service … Continue reading

Posted in Rest API, Uncategorized | Tagged , , , | 1 Comment