Tag 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.name=$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&user.name=” OR curl -iku $userName:$password -L -T … Continue reading

Posted in Rest API, Uncategorized, webhdfs | 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 ambari.properties 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