<?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: Alternative to globalmap in talend bigdata spark in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369924#M133026</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Would you mind posting your current job setting screenshots on forum? Which will be helpful for us to get more information.&lt;/P&gt; 
&lt;P&gt;Please mask your sensitive data.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2018 10:22:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-19T10:22:53Z</dc:date>
    <item>
      <title>Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369921#M133023</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a requirement to use globalMap in Spark bigdata suit.&lt;/P&gt;&lt;P&gt;I understand in 6.x version this is not supported , Are there any alternatives. I need to populate the globalmap with some static values and reference them in the tmap transformation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are about 200 entries for the map. i can get that job working in DI but not in Bigdata enc.&lt;/P&gt;&lt;P&gt;My flor is&amp;nbsp;&lt;/P&gt;&lt;P&gt;file --&amp;gt; tjavaflex(populate globalmap) --&amp;gt; in another subjob access it in tmap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369921#M133023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369922#M133024</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;In fact we have no access for "globalMap" in Spark Batch mode.(because of the different implementation way on Spark Batch compared to DI)&lt;BR /&gt; The reason is that it's difficult to have a synchronous "global" variable in distributed mode and in addition the globalMap is not totally serializable by default.&lt;/P&gt; 
&lt;P&gt;Here are some articles about context in spark job.&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://community.talend.com/t5/Design-and-Development/Using-the-Implicit-Context-Load-Feature-for-a-Spark-Job/ta-p/38282" href="https://community.qlik.com/s/article/ka03p0000006Ec6AAE" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Using-the-Implicit-Context-Load-Feature-for-a-Spark-Job/ta-p/38282&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://community.talend.com/t5/Architecture-Best-Practices-and/Spark-Dynamic-Context/ta-p/33038" href="https://community.qlik.com/s/article/ka03p0000006EJjAAM" target="_self"&gt;https://community.talend.com/t5/Architecture-Best-Practices-and/Spark-Dynamic-Context/ta-p/33038&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Hope it will shed some light on your requirement.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 07:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369922#M133024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-16T07:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369923#M133025</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I ran into that article too but my requirement dosent change.&lt;/P&gt;&lt;P&gt;i need to pass a hashmap to the spark jobs if not globalmap then some other way .&lt;/P&gt;&lt;P&gt;I tried using hashmap as context variable but couldn't&amp;nbsp; cast it back to hashmap from string&amp;nbsp; from a context value in sparkjob.&lt;/P&gt;&lt;P&gt;my flow was&lt;/P&gt;&lt;P&gt;Inputfile --&amp;gt; tjava(populate hashmap and add to context varibale the hashmap) --&amp;gt; pass context to spark job --&amp;gt; tmap access hashmap (error: cant cast string to hashmap)&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 19:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369923#M133025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-16T19:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369924#M133026</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Would you mind posting your current job setting screenshots on forum? Which will be helpful for us to get more information.&lt;/P&gt; 
&lt;P&gt;Please mask your sensitive data.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 10:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369924#M133026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-19T10:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369925#M133027</link>
      <description>&lt;P&gt;my use case was to load a static business file which is of the forum k,v&lt;/P&gt;&lt;P&gt;The problem i cannot use it as a map lookup because&amp;nbsp; the different rows attributes, pass different attributes some static some non static to find a value . So to calculate x if i pass (col1) from main flow , to calculate y i pass col2. etc. so i cannot use any set of same columns as part of map key.&lt;/P&gt;&lt;P&gt;I resolved this by writing procedure to read this file and storing it as a string buffer then parse this string in loop with record separator and try to match and return the matched result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 15:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369925#M133027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-14T15:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369926#M133028</link>
      <description>&lt;P&gt;I have a exactly same issue.&lt;/P&gt; 
&lt;P&gt;I have a csv file that I need to load into org.apache.commons.collections.map.MultiKeyMap() and pass it to bigdata context. So, I am using a Standard job to read CSV file-&amp;gt; tJavaRow to build a MultiKeyMap and store into a context called lookupMap of type Object.&lt;/P&gt; 
&lt;P&gt;After successfully loading the context, for testing I wrote a tJava to read the lookupMap and cast it to a MultiKeyMap, but I get an error saying that cant cast String to MultiKeyMap.&lt;/P&gt; 
&lt;P&gt;lookupMap in Context is defined as Object and not String. So why do I get the cast error?&lt;/P&gt; 
&lt;P&gt;Attached are the screenshots&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 513px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4SM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144175i019B3D21B832E3AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4SM.png" alt="0683p000009M4SM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;context, &lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 912px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Ro.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152248i87E976664070F515/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Ro.png" alt="0683p000009M4Ro.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tJavaRow (sets the context), &lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 754px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M49a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144150iB26558E78930396B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M49a.png" alt="0683p000009M49a.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;and tJava (reads the context).&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Looks like the first line is the one is getting the cast error.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 754px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2q8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148412i1698D67EE2FED9C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2q8.png" alt="0683p000009M2q8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Here is the error.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Looks like a bug to me.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 835px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4SW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146891i9133F81964F92356/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4SW.png" alt="0683p000009M4SW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 13:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369926#M133028</guid>
      <dc:creator>AnandK1</dc:creator>
      <dc:date>2019-05-06T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369927#M133029</link>
      <description>&lt;P&gt;As an FYI, if it is Standard job to Standard job, I already have a solution, I can use the global map to save my MultiKeyMap.&lt;/P&gt;&lt;P&gt;But I have to pass this to a Big data job, as you mentioned globalMap doesn't work for big data job. So looks like context is the solution but I get this error.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 13:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369927#M133029</guid>
      <dc:creator>AnandK1</dc:creator>
      <dc:date>2019-05-06T13:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to globalmap in talend bigdata spark</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369928#M133030</link>
      <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt; 
&lt;P&gt;I followed the below page and able to write to RDD and saving the values into globalMap for further use in job.&lt;/P&gt; 
&lt;P&gt;Please review the below page and the mention of GlobalMap usage in spark big data job. I have used hive component executed the query store in Globalmap in tjava component and used on subjob ok to the actual hive components where the global map values are used. I am able to execute the query and could print the values successfully.The values are properly substituted in the latter queries.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kCRhCAM#M9660" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/tcontextload-component-in-talend-Big-data/m-p/36443/highlight/false#M9660&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 06:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternative-to-globalmap-in-talend-bigdata-spark/m-p/2369928#M133030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-05T06:01:04Z</dc:date>
    </item>
  </channel>
</rss>

