<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question how to call the web-service to read/write the data from the HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145933#M19931</link>
    <description>&lt;P&gt;Since Apache Drill not supported as of now, i need to find out the way to call web-service&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2016 00:09:11 GMT</pubDate>
    <dc:creator>balajibobba</dc:creator>
    <dc:date>2016-02-18T00:09:11Z</dc:date>
    <item>
      <title>how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145933#M19931</link>
      <description>&lt;P&gt;Since Apache Drill not supported as of now, i need to find out the way to call web-service&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:09:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145933#M19931</guid>
      <dc:creator>balajibobba</dc:creator>
      <dc:date>2016-02-18T00:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145934#M19932</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2871/balajibobba.html" nodeid="2871"&gt;@Balaji Bobba&lt;/A&gt;&lt;PRE&gt;WebHCat

# this will execute a hive query and save result to hdfs file in your home directory called output
curl -s -d execute="select+*+from+sample_08;" \
       -d statusdir="output" \
       'http://localhost:50111/templeton/v1/hive?user.name=root'
       
# if you ls on the directory, it will have two files, stderr and stdout
hdfs dfs -ls output

# if the job succeeded, you can cat the stdout file and view the results
hdfs dfs -cat output/stdout       

WebHDFS

# list the output directory, notice the webhdfs port
curl -i "http://sandbox.hortonworks.com:50070/webhdfs/v1/user/root/output/?op=LISTSTATUS"

# read the output file
curl -i -L "http://sandbox.hortonworks.com:50070/webhdfs/v1/user/root/output/stdout?op=OPEN"

# rename a file, if you get dr. who error, add &amp;amp;user.name=root or any other user in the context
curl -i -X PUT "sandbox.hortonworks.com:50070/webhdfs/v1/user/root/output/stdout?op=RENAME&amp;amp;user.name=root&amp;amp;destination=/user/root/newname"

# read the output of the new file
curl -i -L "http://sandbox.hortonworks.com:50070/webhdfs/v1/user/root/newname?op=OPEN"


&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:10:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145934#M19932</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-18T00:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145935#M19933</link>
      <description>&lt;P&gt;So you want to read/write files in HDFS? &lt;/P&gt;&lt;P&gt;This is what webhdfs is for:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html" target="_blank"&gt;https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:13:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145935#M19933</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-02-18T00:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145936#M19934</link>
      <description>&lt;P&gt;Thanks Artem, but I may have to use SOAP/REST from another client to read or write the data into HDFS... so any idea about that?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:15:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145936#M19934</guid>
      <dc:creator>balajibobba</dc:creator>
      <dc:date>2016-02-18T00:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145937#M19935</link>
      <description>&lt;P&gt;you can use the hdfs java api and wrap your rest code? &lt;A href="http://tutorials.techmytalk.com/2014/08/16/hadoop-hdfs-java-api/" target="_blank"&gt;http://tutorials.techmytalk.com/2014/08/16/hadoop-hdfs-java-api/&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2871/balajibobba.html" nodeid="2871"&gt;@Balaji Bobba&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:20:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145937#M19935</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-18T00:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145938#M19936</link>
      <description>&lt;P&gt;Thanks Benjamin, I will look into this.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:25:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145938#M19936</guid>
      <dc:creator>balajibobba</dc:creator>
      <dc:date>2016-02-18T00:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145939#M19937</link>
      <description>&lt;P&gt;Thanks, this may work I will look into this.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:26:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145939#M19937</guid>
      <dc:creator>balajibobba</dc:creator>
      <dc:date>2016-02-18T00:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to call the web-service to read/write the data from the HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145940#M19938</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2871/balajibobba.html" nodeid="2871"&gt;@Balaji Bobba&lt;/A&gt; you're welcome, try it out and post your solution.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:27:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-call-the-web-service-to-read-write-the-data-from-the/m-p/145940#M19938</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-18T00:27:28Z</dc:date>
    </item>
  </channel>
</rss>

