<?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: Write into BDFS using custom script fails with 'Unsupported output target'? in ArcGIS GeoAnalytics Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/write-into-bdfs-using-custom-script-fails-with/m-p/1056883#M185</link>
    <description>&lt;P&gt;Hi, you are right, when writing to a BDFS the template needs to be added to the output datastore string.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df.write.format('webgis').option('dataStore', '/bigDataFileShares/BDFS2:csv').save('output_one')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The following documentation link contains additional datastore string examples that might be helpful:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/run-python-script-examples.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/run-python-script-examples.htm&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;In addition the following documentation links cover how to create a template:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/manage-data/windows/registering-your-data-with-arcgis-server-using-manager.htm#ESRI_STEP_A69E43D13AC44CDB9EF06B0185451764" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/manage-data/windows/registering-your-data-with-arcgis-server-using-manager.htm#ESRI_STEP_A69E43D13AC44CDB9EF06B0185451764&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/geoanalytics/latest/perform-analysis/output-templates-in-a-big-data-file-share.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/geoanalytics/latest/perform-analysis/output-templates-in-a-big-data-file-share.htm&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 11 May 2021 20:37:44 GMT</pubDate>
    <dc:creator>DerekGourley</dc:creator>
    <dc:date>2021-05-11T20:37:44Z</dc:date>
    <item>
      <title>Write into BDFS using custom script fails with 'Unsupported output target'?</title>
      <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/write-into-bdfs-using-custom-script-fails-with/m-p/1056596#M184</link>
      <description>&lt;P&gt;We try to write into a registered BDFS named 'BDFS2'. The datastore manager shows the datasetpath as &lt;SPAN&gt;'/bigDataFileShares/BDFS2&lt;/SPAN&gt;'. When we try to use it for writing from a custom python script the spark fails with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"messageCode":"BD_101138","message":"[Python] pyspark.sql.utils.IllegalArgumentException: Unsupported output target '/bigDataFileShares/BDFS2'","params":{"text":"pyspark.sql.utils.IllegalArgumentException: Unsupported
output target '/bigDataFileShares/BDFS2'"}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Custom script for writing tracks:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def write_tracks(layer_url=None, where=None, output_bdfs=None, output_name=None):
    layer_url = user_variables['layer_url']
    where = user_variables['where']
    output_bdfs = user_variables['output_bdfs']
    output_name = user_variables['output_name']
    tracks_data = spark.read.format('webgis').option('where', where).load(layer_url)
    if None is output_bdfs:
        tracks_data.write.format('webgis').save(output_name)
    else:
        tracks_data.write.format('webgis').option('dataStore', output_bdfs).save(output_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have to specify a template before writing the filtered dataframe?&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 09:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/write-into-bdfs-using-custom-script-fails-with/m-p/1056596#M184</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2021-05-11T09:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write into BDFS using custom script fails with 'Unsupported output target'?</title>
      <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/write-into-bdfs-using-custom-script-fails-with/m-p/1056883#M185</link>
      <description>&lt;P&gt;Hi, you are right, when writing to a BDFS the template needs to be added to the output datastore string.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df.write.format('webgis').option('dataStore', '/bigDataFileShares/BDFS2:csv').save('output_one')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The following documentation link contains additional datastore string examples that might be helpful:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/run-python-script-examples.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/run-python-script-examples.htm&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;In addition the following documentation links cover how to create a template:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/manage-data/windows/registering-your-data-with-arcgis-server-using-manager.htm#ESRI_STEP_A69E43D13AC44CDB9EF06B0185451764" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/manage-data/windows/registering-your-data-with-arcgis-server-using-manager.htm#ESRI_STEP_A69E43D13AC44CDB9EF06B0185451764&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/geoanalytics/latest/perform-analysis/output-templates-in-a-big-data-file-share.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/geoanalytics/latest/perform-analysis/output-templates-in-a-big-data-file-share.htm&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 11 May 2021 20:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/write-into-bdfs-using-custom-script-fails-with/m-p/1056883#M185</guid>
      <dc:creator>DerekGourley</dc:creator>
      <dc:date>2021-05-11T20:37:44Z</dc:date>
    </item>
  </channel>
</rss>

