<?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 Tip: INDB with a  .INDBC file using a Dynamic Username in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Tip-INDB-with-a-INDBC-file-using-a-Dynamic-Username/m-p/670917#M157151</link>
    <description>&lt;P&gt;Our enterprise uses Hadoop with Kerberos and keytabs. I set up the INDB connection to use a file.&amp;nbsp; The file is on a UNC path that all the users ansd the Alteryx server have permission to.&amp;nbsp; I was going to just have a file for each user, and then we could switch the .indbc file connection for the user that was using the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then went down the path of trying to make that dynamic and the solution I came up with was based on some other users suggestions for a dynamic username, based on a windows system variable. NickC suggested this in this &lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Include-Username-in-Workflow/ta-p/526963" target="_self"&gt;article&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;I needed to make this work, I tried using this as a workflow constant.&amp;nbsp; This did not work.&amp;nbsp; What I ended up doing blew my mind, I had zero hope that it would work, but it did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replaced the username with&amp;nbsp;User=&lt;STRONG&gt;GetEnvironmentVariable("USERNAME")&lt;/STRONG&gt; and this worked. Alteryx did not read this as a string but as a command and processed the command.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;InDBConnection&amp;gt;
  &amp;lt;ConnectionType&amp;gt;Impala&amp;lt;/ConnectionType&amp;gt;
  &amp;lt;IsNative&amp;gt;True&amp;lt;/IsNative&amp;gt;
  &amp;lt;DbToAlteryx&amp;gt;
    &amp;lt;Connection&amp;gt;odbc:Driver={Cloudera ODBC Driver for Impala};Host=host.cloud.com;Port=21051;AuthMech=1;KrbRealm=ABCDEF.CLOUD.COM;KrbFQDN=ABCDEF.CLOUD.COM;KrbServiceName=impala;SSL=0;&amp;lt;/Connection&amp;gt;
    &amp;lt;DecryptionAllowed&amp;gt;False&amp;lt;/DecryptionAllowed&amp;gt;
    &amp;lt;Passwords /&amp;gt;
    &amp;lt;FormatSpecificOptions&amp;gt;
      &amp;lt;ReadUncommitted&amp;gt;False&amp;lt;/ReadUncommitted&amp;gt;
      &amp;lt;TableStyle&amp;gt;Quoted&amp;lt;/TableStyle&amp;gt;
    &amp;lt;/FormatSpecificOptions&amp;gt;
    &amp;lt;Type&amp;gt;ImpalaODBC&amp;lt;/Type&amp;gt;
  &amp;lt;/DbToAlteryx&amp;gt;
  &amp;lt;AlteryxToDb OutputDriverSelection="Specified"&amp;gt;
    &amp;lt;Connection&amp;gt;hdfsa:Hostname=ABCDEF.CLOUD.COM:14000;User=GetEnvironmentVariable("USERNAME");Password=__EncPwd1__;Authenticate=true;KerbType=mit;Tempdir=/user/temp;URL=http://awedva3uthtw01.cloud.tiaa-cref.org:14000/&amp;lt;/Connection&amp;gt;
    &amp;lt;DecryptionAllowed&amp;gt;False&amp;lt;/DecryptionAllowed&amp;gt;
    &amp;lt;Passwords&amp;gt;mypasswordabcdefg&amp;lt;/Passwords&amp;gt;
    &amp;lt;FormatSpecificOptions&amp;gt;
      &amp;lt;EnableCompression&amp;gt;True&amp;lt;/EnableCompression&amp;gt;
      &amp;lt;SupportNullValues&amp;gt;True&amp;lt;/SupportNullValues&amp;gt;
    &amp;lt;/FormatSpecificOptions&amp;gt;
    &amp;lt;Type&amp;gt;HDFS_Avro&amp;lt;/Type&amp;gt;
  &amp;lt;/AlteryxToDb&amp;gt;
&amp;lt;/InDBConnection&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 12:44:46 GMT</pubDate>
    <dc:creator>matthewbechard</dc:creator>
    <dc:date>2020-11-24T12:44:46Z</dc:date>
    <item>
      <title>Tip: INDB with a  .INDBC file using a Dynamic Username</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Tip-INDB-with-a-INDBC-file-using-a-Dynamic-Username/m-p/670917#M157151</link>
      <description>&lt;P&gt;Our enterprise uses Hadoop with Kerberos and keytabs. I set up the INDB connection to use a file.&amp;nbsp; The file is on a UNC path that all the users ansd the Alteryx server have permission to.&amp;nbsp; I was going to just have a file for each user, and then we could switch the .indbc file connection for the user that was using the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then went down the path of trying to make that dynamic and the solution I came up with was based on some other users suggestions for a dynamic username, based on a windows system variable. NickC suggested this in this &lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Include-Username-in-Workflow/ta-p/526963" target="_self"&gt;article&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;I needed to make this work, I tried using this as a workflow constant.&amp;nbsp; This did not work.&amp;nbsp; What I ended up doing blew my mind, I had zero hope that it would work, but it did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replaced the username with&amp;nbsp;User=&lt;STRONG&gt;GetEnvironmentVariable("USERNAME")&lt;/STRONG&gt; and this worked. Alteryx did not read this as a string but as a command and processed the command.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;InDBConnection&amp;gt;
  &amp;lt;ConnectionType&amp;gt;Impala&amp;lt;/ConnectionType&amp;gt;
  &amp;lt;IsNative&amp;gt;True&amp;lt;/IsNative&amp;gt;
  &amp;lt;DbToAlteryx&amp;gt;
    &amp;lt;Connection&amp;gt;odbc:Driver={Cloudera ODBC Driver for Impala};Host=host.cloud.com;Port=21051;AuthMech=1;KrbRealm=ABCDEF.CLOUD.COM;KrbFQDN=ABCDEF.CLOUD.COM;KrbServiceName=impala;SSL=0;&amp;lt;/Connection&amp;gt;
    &amp;lt;DecryptionAllowed&amp;gt;False&amp;lt;/DecryptionAllowed&amp;gt;
    &amp;lt;Passwords /&amp;gt;
    &amp;lt;FormatSpecificOptions&amp;gt;
      &amp;lt;ReadUncommitted&amp;gt;False&amp;lt;/ReadUncommitted&amp;gt;
      &amp;lt;TableStyle&amp;gt;Quoted&amp;lt;/TableStyle&amp;gt;
    &amp;lt;/FormatSpecificOptions&amp;gt;
    &amp;lt;Type&amp;gt;ImpalaODBC&amp;lt;/Type&amp;gt;
  &amp;lt;/DbToAlteryx&amp;gt;
  &amp;lt;AlteryxToDb OutputDriverSelection="Specified"&amp;gt;
    &amp;lt;Connection&amp;gt;hdfsa:Hostname=ABCDEF.CLOUD.COM:14000;User=GetEnvironmentVariable("USERNAME");Password=__EncPwd1__;Authenticate=true;KerbType=mit;Tempdir=/user/temp;URL=http://awedva3uthtw01.cloud.tiaa-cref.org:14000/&amp;lt;/Connection&amp;gt;
    &amp;lt;DecryptionAllowed&amp;gt;False&amp;lt;/DecryptionAllowed&amp;gt;
    &amp;lt;Passwords&amp;gt;mypasswordabcdefg&amp;lt;/Passwords&amp;gt;
    &amp;lt;FormatSpecificOptions&amp;gt;
      &amp;lt;EnableCompression&amp;gt;True&amp;lt;/EnableCompression&amp;gt;
      &amp;lt;SupportNullValues&amp;gt;True&amp;lt;/SupportNullValues&amp;gt;
    &amp;lt;/FormatSpecificOptions&amp;gt;
    &amp;lt;Type&amp;gt;HDFS_Avro&amp;lt;/Type&amp;gt;
  &amp;lt;/AlteryxToDb&amp;gt;
&amp;lt;/InDBConnection&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 12:44:46 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Tip-INDB-with-a-INDBC-file-using-a-Dynamic-Username/m-p/670917#M157151</guid>
      <dc:creator>matthewbechard</dc:creator>
      <dc:date>2020-11-24T12:44:46Z</dc:date>
    </item>
  </channel>
</rss>

