<?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>question Re: Not able to set dfs.replication while running beeline command for HIVE table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378692#M243629</link>
    <description>&lt;P&gt;IT is still not working tried from the beeline shell too&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 06:03:33 GMT</pubDate>
    <dc:creator>jayes</dc:creator>
    <dc:date>2023-11-07T06:03:33Z</dc:date>
    <item>
      <title>Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378603#M243605</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;I am trying to run beeline commandline to export the hive table to a location. i am trying to set replication factor to 1 but it if failing with following error :&lt;BR /&gt;Error: Error while processing statement: Cannot modify dfs.replication at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)&lt;/P&gt;&lt;P&gt;Cluster details :&lt;BR /&gt;3 nodes cluster&amp;nbsp;&lt;BR /&gt;and in all hvie-site.xml i have set the following property and then restarted hive and hiveserver2&amp;nbsp;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.security.authorization.sqlstd.confwhitelist.append&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;mapred.*|hive.*|mapreduce.*|spark.*|dfs.*&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Beeline Command :&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo -u hive beeline -u "jdbc:hive2://machine1.dev.domain.com:2181/default;password=hive;principal=hive/_HOST@DEV.domain.COM;serviceDiscoveryMode=zooKeeper;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=****;user=hive;zooKeeperNamespace=hiveserver2" -n hive--showHeader=false --outputformat=tsv2 -e "Set dfs.replication=1; use testdb; export table newt1 to '/staging/exporttable/testdb/newt1';"&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sudo -u hive beeline -u "jdbc:hive2://machine1.dev.domain.com:2181/default;password=hive;principal=hive/_HOST@DEV.domain.COM;serviceDiscoveryMode=zooKeeper;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=****;user=hive;zooKeeperNamespace=hiveserver2"&amp;nbsp; --hiveconf dfs.replication=1&amp;nbsp; -n hive--showHeader=false --outputformat=tsv2 -e "use testdb; export table newt1 to '/staging/exporttable/testdb/newt1';"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;23/10/31 02:01:14 [main]: ERROR jdbc.Utils: Unable to read HiveServer2 configs from ZooKeeper&lt;BR /&gt;Error: Could not open client transport for any of the Server URI's in ZooKeeper: Failed to open new session: java.lang.IllegalArgumentException: Cannot modify dfs.replication at runtime. It is not in list of params that are allowed to be modified at runtime (state=08S01,code=0)&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 04:53:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378603#M243605</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2023-11-06T04:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378612#M243608</link>
      <description>&lt;P&gt;Hi Jayes,&lt;/P&gt;&lt;P&gt;Please try first logging into beeline interactive shell and then run each command separately and see if it is working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the issue still persist check if you are able to run from another user who has access to the DB, table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 08:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378612#M243608</guid>
      <dc:creator>hshaikh</dc:creator>
      <dc:date>2023-11-06T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378666#M243624</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107114"&gt;@jayes&lt;/a&gt;&amp;nbsp;Hive reads this parameter value from &lt;STRONG&gt;hdfs-site.xml&lt;/STRONG&gt;. So, you should probably consider setting the value under HDFS service. Nevertheless, if you want to export that parameter in Hive/beeline cli, you could try setting '&lt;SPAN&gt;hive.security.authorization.sqlstd.confwhitelist.append' correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;name&amp;gt;hive.security.authorization.sqlstd.confwhitelist.append&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;mapred\..*|hive\..*|mapreduce\..*|spark\..*|dfs\..*&amp;lt;/value&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Nov 2023 19:58:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378666#M243624</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2023-11-06T19:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378691#M243628</link>
      <description>&lt;P&gt;0: jdbc:hive2://machine1.***.***.c&amp;gt; show databases;&lt;BR /&gt;INFO : Compiling command(queryId=hive_20231107010124_eaff8e06-cd0a-4484-a1b0-80f9eb2bae64): show databases&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Created Hive schema: Schema(fieldSchemas:[FieldSchema(name:database_name, type:string, comment:from deserializer)], properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=hive_20231107010124_eaff8e06-cd0a-4484-a1b0-80f9eb2bae64); Time taken: 0.038 seconds&lt;BR /&gt;INFO : Executing command(queryId=hive_20231107010124_eaff8e06-cd0a-4484-a1b0-80f9eb2bae64): show databases&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20231107010124_eaff8e06-cd0a-4484-a1b0-80f9eb2bae64); Time taken: 0.037 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;+---------------------+&lt;BR /&gt;| database_name |&lt;BR /&gt;+---------------------+&lt;BR /&gt;| default |&lt;BR /&gt;| information_schema |&lt;BR /&gt;| largedb |&lt;BR /&gt;| newtest |&lt;BR /&gt;| sys |&lt;BR /&gt;| testdb |&lt;BR /&gt;| underscore |&lt;BR /&gt;| underscoretest |&lt;BR /&gt;+---------------------+&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://machine1.***.***.c&amp;gt; set def-replication=1;&lt;BR /&gt;Error: Error while processing statement: Cannot modify def-replication at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:03:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378691#M243628</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2023-11-07T06:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378692#M243629</link>
      <description>&lt;P&gt;IT is still not working tried from the beeline shell too&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:03:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378692#M243629</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2023-11-07T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378694#M243631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Yes agree that we can set parameter in hdfs-site.xml, so that it will reflect, but i dont want to change replication factor of whole cluster. Its just while running command i want to change.&lt;BR /&gt;&lt;BR /&gt;i tried setting the property in hive-site.xml on all 3 nodes of cluster and restarted the hive service, but still it is failing with same error.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;hive.security.authorization.sqlstd.confwhitelist.append&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;mapred\..*|hive\..*|mapreduce\..*|spark\..*|dfs\..*&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Error :&lt;/P&gt;&lt;P&gt;Connected to: Apache Hive (version 3.1.3000.7.1.7.0-551)&lt;BR /&gt;Driver: Hive JDBC (version 3.1.3000.7.1.7.0-551)&lt;BR /&gt;Transaction isolation: TRANSACTION_REPEATABLE_READ&lt;BR /&gt;Error: Error while processing statement: Cannot modify dfs.replication at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:27:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378694#M243631</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2023-11-07T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to set dfs.replication while running beeline command for HIVE table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378960#M243740</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107114"&gt;@jayes&lt;/a&gt;&amp;nbsp;Please make sure that you have set this property in "&lt;SPAN&gt;HiveServer2 Advanced Configuration Snippet (Safety Valve) for hive-site.xml" under Hive on Tez configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried this and it works for me:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Beeline version 3.1.3000.7.1.7.2000-305 by Apache Hive
0: jdbc:hive2://c1649-node2.coelab.cloudera.c&amp;gt; set  dfs.replication=1;
No rows affected (0.208 seconds)
0: jdbc:hive2://c1649-node2.coelab.cloudera.c&amp;gt; set hive.security.authorization.sqlstd.confwhitelist.append;
+----------------------------------------------------+
|                        set                         |
+----------------------------------------------------+
| hive.security.authorization.sqlstd.confwhitelist.append=mapred\..*|hive\..*|mapreduce\..*|spark\..*|dfs\..* |
+----------------------------------------------------+
1 row selected (0.109 seconds)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Nov 2023 18:55:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-set-dfs-replication-while-running-beeline/m-p/378960#M243740</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2023-11-13T18:55:16Z</dc:date>
    </item>
  </channel>
</rss>

