<?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>topic Re: Set hadoop configuration? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Set-hadoop-configuration/m-p/2284858#M58480</link>
    <description>Hi djidji, 
&lt;BR /&gt; Of course ,you can do it. 
&lt;BR /&gt; Please to my attachment. 
&lt;BR /&gt; 
&lt;BR /&gt;jjzhou 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCqq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137595i0523B746518EDAF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCqq.png" alt="0683p000009MCqq.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 20 Mar 2014 09:55:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-20T09:55:48Z</dc:date>
    <item>
      <title>Set hadoop configuration?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-hadoop-configuration/m-p/2284857#M58479</link>
      <description>Hello! 
&lt;BR /&gt;I would like to integrate this code in a tJavaMR. (It reads a file from hdfs) 
&lt;BR /&gt;However i don't know how to integrate some Hadoop parameters as for example: 
&lt;BR /&gt;"Configuration conf = context.getConfiguration();" 
&lt;BR /&gt;or 
&lt;BR /&gt;"FileSystem fs = FileSystem.get(conf);" 
&lt;BR /&gt; 
&lt;BR /&gt;Do you know where i can set these parameters please? 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt;Here is the code: 
&lt;BR /&gt; 
&lt;PRE&gt;Configuration conf = context.getConfiguration();&lt;BR /&gt;            String file = conf.get("my.own.file", "hdfs://file.xml");&lt;BR /&gt;            Path path = new Path(file);&lt;BR /&gt;            FileSystem fs = FileSystem.get(conf);&lt;BR /&gt;            &lt;BR /&gt;            BufferedReader bread = new BufferedReader(new InputStreamReader(fs.open(path)));&lt;BR /&gt;            StringBuilder sb = new StringBuilder();&lt;BR /&gt;            String line = bread.readLine();&lt;BR /&gt;           &lt;BR /&gt;            while (line != null) {&lt;BR /&gt;                sb.append(line).append("\n");&lt;BR /&gt;                line = bread.readLine();&lt;BR /&gt;            }&lt;BR /&gt;            String xml = sb.toString();&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-hadoop-configuration/m-p/2284857#M58479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set hadoop configuration?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-hadoop-configuration/m-p/2284858#M58480</link>
      <description>Hi djidji, 
&lt;BR /&gt; Of course ,you can do it. 
&lt;BR /&gt; Please to my attachment. 
&lt;BR /&gt; 
&lt;BR /&gt;jjzhou 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCqq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137595i0523B746518EDAF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCqq.png" alt="0683p000009MCqq.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-hadoop-configuration/m-p/2284858#M58480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-20T09:55:48Z</dc:date>
    </item>
  </channel>
</rss>

