<?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: tElasticSearchOutput is adding a slash to the document type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359760#M124487</link>
    <description>&lt;P&gt;That seems to be unrelated. I already have my content in a single column of type string:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="esSchema.PNG" style="width: 818px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lygs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154001i126D5D457F74D48E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lygs.png" alt="0683p000009Lygs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/38486503/elastic-search-invalid-pattern-given" target="_self" rel="nofollow noopener noreferrer"&gt;This Stackoverflow answer&lt;/A&gt; makes me think the wrong parameters are being passed in to org.elasticsearch.spark.rdd.EsSpark.saveJsonToEs().&amp;nbsp; It expects the pattern "indexName/documentType", and it's getting something like "indexName/documentType/" somehow. Here's the relevant configuration for my tElasticSearchOutput:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="esConfig.PNG" style="width: 926px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz15.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148672i07B2D1A037DF0E14/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz15.png" alt="0683p000009Lz15.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I tried putting the index name under "Type" and the type ("doc") under "Index" to see if it was just a simple transposition of fields, but that didn't work either.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 00:07:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-31T00:07:00Z</dc:date>
    <item>
      <title>tElasticSearchOutput is adding a slash to the document type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359758#M124485</link>
      <description>&lt;P&gt;I'm trying to write JSON documents to Elasticsearch in a Spark streaming job. I've set the document type to "doc" in the component configuration. I'm getting the following exception:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[ERROR]: org.apache.spark.executor.Executor - Exception in task 7.0 in stage 0.0 (TID 7)
org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: invalid pattern given doc/
	at org.elasticsearch.hadoop.util.Assert.isTrue(Assert.java:50)
	at org.elasticsearch.hadoop.serialization.field.AbstractIndexExtractor.compile(AbstractIndexExtractor.java:51)
	at org.elasticsearch.hadoop.rest.RestService.createWriter(RestService.java:565)
	at org.elasticsearch.spark.rdd.EsRDDWriter.write(EsRDDWriter.scala:58)
	at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:102)
	at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:102)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
	at org.apache.spark.scheduler.Task.run(Task.scala:85)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359758#M124485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: tElasticSearchOutput is adding a slash to the document type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359759#M124486</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Here exists a jira issue:&lt;A title="https://jira.talendforge.org/browse/TBD-3707" href="https://jira.talendforge.org/browse/TBD-3707" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TBD-3707&lt;/A&gt;.&lt;/P&gt; 
&lt;P&gt;Could you please let us know if it is what you are looking for?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359759#M124486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-30T07:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: tElasticSearchOutput is adding a slash to the document type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359760#M124487</link>
      <description>&lt;P&gt;That seems to be unrelated. I already have my content in a single column of type string:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="esSchema.PNG" style="width: 818px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lygs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154001i126D5D457F74D48E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lygs.png" alt="0683p000009Lygs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/38486503/elastic-search-invalid-pattern-given" target="_self" rel="nofollow noopener noreferrer"&gt;This Stackoverflow answer&lt;/A&gt; makes me think the wrong parameters are being passed in to org.elasticsearch.spark.rdd.EsSpark.saveJsonToEs().&amp;nbsp; It expects the pattern "indexName/documentType", and it's getting something like "indexName/documentType/" somehow. Here's the relevant configuration for my tElasticSearchOutput:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="esConfig.PNG" style="width: 926px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz15.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148672i07B2D1A037DF0E14/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz15.png" alt="0683p000009Lz15.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I tried putting the index name under "Type" and the type ("doc") under "Index" to see if it was just a simple transposition of fields, but that didn't work either.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 00:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tElasticSearchOutput-is-adding-a-slash-to-the-document-type/m-p/2359760#M124487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-31T00:07:00Z</dc:date>
    </item>
  </channel>
</rss>

