<?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 &amp;quot;init script execution failed&amp;quot; error while running tpch-setup.sh in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/quot-init-script-execution-failed-quot-error-while-running/m-p/337039#M232471</link>
    <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am following the instructions to run hive tpch&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="https://github.com/hortonworks/hive-testbench.git" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/hortonworks/hive-testbench.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using Cloudera Enterprise Trial 7.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the initial error(&lt;A href="https://community.cloudera.com/t5/Support-Questions/Error-while-running-hive-tpch-Exception-in-thread-quot-main/m-p/336879/thread-id/232418/highlight/false#M232465" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Error-while-running-hive-tpch-Exception-in-thread-quot-main/m-p/336879/thread-id/232418/highlight/false#M232465&lt;/A&gt;&amp;nbsp;) and tried to rerun the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;tpch-setup.sh&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;. I am running into following error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;+ echo 'TPC-H text data generation complete.'
TPC-H text data generation complete.
+ echo 'Loading text data into external tables.'
Loading text data into external tables.
+ runcommand 'beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/alltables.sql -d DB=tpch_text_2 -d LOCATION=/tmp/tpch-generate/2'
+ '[' X '!=' X ']'
+ beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/alltables.sql -d DB=tpch_text_2 -d LOCATION=/tmp/tpch-generate/2
+ i=1
+ total=8
+ test 2 -le 1000
+ SCHEMA_TYPE=flat
+ DATABASE=tpch_flat_orc_2
+ MAX_REDUCERS=2600
++ test 2 -gt 2600
++ echo 2
+ REDUCERS=2
+ for t in '${TABLES}'
+ echo 'Optimizing table part (1/8).'
Optimizing table part (1/8).
+ COMMAND='beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql 	    -d DB=tpch_flat_orc_2 	    -d SOURCE=tpch_text_2 -d BUCKETS=13             -d SCALE=2 -d REDUCERS=2 	    -d FILE=orc'
+ runcommand 'beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql 	    -d DB=tpch_flat_orc_2 	    -d SOURCE=tpch_text_2 -d BUCKETS=13             -d SCALE=2 -d REDUCERS=2 	    -d FILE=orc'
+ '[' X '!=' X ']'
+ beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql -d DB=tpch_flat_orc_2 -d SOURCE=tpch_text_2 -d BUCKETS=13 -d SCALE=2 -d REDUCERS=2 -d FILE=orc
+ '[' 1 -ne 0 ']'
+ echo 'Command failed, try '\''export DEBUG_SCRIPT=ON'\'' and re-running'
Command failed, try 'export DEBUG_SCRIPT=ON' and re-running
+ exit 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the failing command output when run from the console&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;beeline -u jdbc:hive2://testmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql -d DB=tpch_flat_orc_2 -d SOURCE=tpch_text_2 -d BUCKETS=13 -d SCALE=2 -d REDUCERS=2 -d FILE=orc
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.
WARNING: Use "yarn jar" to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://testmach.com:10000/default
DB=tpch_flat_orc_2
Running init script settings/load-flat.sql
0: jdbc:hive2://testmach.com:10000/d (closed)&amp;gt; --set hive.enforce.bucketing=true;
0: jdbc:hive2://testmach.com:10000/d (closed)&amp;gt; --set hive.enforce.sorting=true;
0: jdbc:hive2://testmach.com:10000/d (closed)&amp;gt; set hive.exec.dynamic.partition.mode=nonstrict;
DB=tpch_flat_orc_2
No current connection
init script execution failed.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;load-flat.sql&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/hortonworks/hive-testbench/blob/hdp3/settings/load-flat.sql" target="_blank"&gt;https://github.com/hortonworks/hive-testbench/blob/hdp3/settings/load-flat.sql&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 15:50:47 GMT</pubDate>
    <dc:creator>Ane</dc:creator>
    <dc:date>2022-02-24T15:50:47Z</dc:date>
    <item>
      <title>"init script execution failed" error while running tpch-setup.sh</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-init-script-execution-failed-quot-error-while-running/m-p/337039#M232471</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am following the instructions to run hive tpch&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="https://github.com/hortonworks/hive-testbench.git" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/hortonworks/hive-testbench.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using Cloudera Enterprise Trial 7.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the initial error(&lt;A href="https://community.cloudera.com/t5/Support-Questions/Error-while-running-hive-tpch-Exception-in-thread-quot-main/m-p/336879/thread-id/232418/highlight/false#M232465" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Error-while-running-hive-tpch-Exception-in-thread-quot-main/m-p/336879/thread-id/232418/highlight/false#M232465&lt;/A&gt;&amp;nbsp;) and tried to rerun the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;tpch-setup.sh&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;. I am running into following error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;+ echo 'TPC-H text data generation complete.'
TPC-H text data generation complete.
+ echo 'Loading text data into external tables.'
Loading text data into external tables.
+ runcommand 'beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/alltables.sql -d DB=tpch_text_2 -d LOCATION=/tmp/tpch-generate/2'
+ '[' X '!=' X ']'
+ beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/alltables.sql -d DB=tpch_text_2 -d LOCATION=/tmp/tpch-generate/2
+ i=1
+ total=8
+ test 2 -le 1000
+ SCHEMA_TYPE=flat
+ DATABASE=tpch_flat_orc_2
+ MAX_REDUCERS=2600
++ test 2 -gt 2600
++ echo 2
+ REDUCERS=2
+ for t in '${TABLES}'
+ echo 'Optimizing table part (1/8).'
Optimizing table part (1/8).
+ COMMAND='beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql 	    -d DB=tpch_flat_orc_2 	    -d SOURCE=tpch_text_2 -d BUCKETS=13             -d SCALE=2 -d REDUCERS=2 	    -d FILE=orc'
+ runcommand 'beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql 	    -d DB=tpch_flat_orc_2 	    -d SOURCE=tpch_text_2 -d BUCKETS=13             -d SCALE=2 -d REDUCERS=2 	    -d FILE=orc'
+ '[' X '!=' X ']'
+ beeline -u jdbc:hive2://techmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql -d DB=tpch_flat_orc_2 -d SOURCE=tpch_text_2 -d BUCKETS=13 -d SCALE=2 -d REDUCERS=2 -d FILE=orc
+ '[' 1 -ne 0 ']'
+ echo 'Command failed, try '\''export DEBUG_SCRIPT=ON'\'' and re-running'
Command failed, try 'export DEBUG_SCRIPT=ON' and re-running
+ exit 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the failing command output when run from the console&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;beeline -u jdbc:hive2://testmach.com:10000/default -i settings/load-flat.sql -f ddl-tpch/bin_flat/part.sql -d DB=tpch_flat_orc_2 -d SOURCE=tpch_text_2 -d BUCKETS=13 -d SCALE=2 -d REDUCERS=2 -d FILE=orc
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.
WARNING: Use "yarn jar" to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://testmach.com:10000/default
DB=tpch_flat_orc_2
Running init script settings/load-flat.sql
0: jdbc:hive2://testmach.com:10000/d (closed)&amp;gt; --set hive.enforce.bucketing=true;
0: jdbc:hive2://testmach.com:10000/d (closed)&amp;gt; --set hive.enforce.sorting=true;
0: jdbc:hive2://testmach.com:10000/d (closed)&amp;gt; set hive.exec.dynamic.partition.mode=nonstrict;
DB=tpch_flat_orc_2
No current connection
init script execution failed.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;load-flat.sql&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/hortonworks/hive-testbench/blob/hdp3/settings/load-flat.sql" target="_blank"&gt;https://github.com/hortonworks/hive-testbench/blob/hdp3/settings/load-flat.sql&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 15:50:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-init-script-execution-failed-quot-error-while-running/m-p/337039#M232471</guid>
      <dc:creator>Ane</dc:creator>
      <dc:date>2022-02-24T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: "init script execution failed" error while running tpch-setup.sh</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-init-script-execution-failed-quot-error-while-running/m-p/337060#M232480</link>
      <description>&lt;P&gt;-d option is not supported in beeline. Issue got resolved using&amp;nbsp;&lt;SPAN class="s1"&gt;--hivevar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:22:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-init-script-execution-failed-quot-error-while-running/m-p/337060#M232480</guid>
      <dc:creator>Ane</dc:creator>
      <dc:date>2022-02-24T17:22:35Z</dc:date>
    </item>
  </channel>
</rss>

