Monthly Archives: May 2017

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