<?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 Output formatting not correct impala in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53425#M59228</link>
    <description>&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;Query result format is not correct ,also one column data is not populating in Impala .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://neocc9hddn20.prod.com:2&amp;gt; select mtcn_nr,attemptid from compliance.core_Rtra_attempts where year=2017 and month=2 limit 5;&lt;BR /&gt;0289234372&lt;BR /&gt;0724186390&lt;BR /&gt;9440690205&lt;BR /&gt;3311840200&lt;BR /&gt;1729311363&lt;BR /&gt;+----------+------------+--+&lt;BR /&gt;| mtcn_nr | attemptid |&lt;BR /&gt;+----------+------------+--+&lt;BR /&gt;+----------+------------+--+&lt;BR /&gt;No rows selected (1.156 seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while same is workijng fine in hive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://neocc9hdmn01.prod.com:1&amp;gt; select mtcn_nr,attemptid from compliance.core_Rtra_attempts where year=2017 and month=2 limit 5;&lt;BR /&gt;+-------------+----------------------+--+&lt;BR /&gt;| mtcn_nr | attemptid |&lt;BR /&gt;+-------------+----------------------+--+&lt;BR /&gt;| 8169184643 | 3000000000435887282 |&lt;BR /&gt;| 7747378580 | 3000000000435891774 |&lt;BR /&gt;| 3628896948 | 3000000000435891859 |&lt;BR /&gt;| 7025164684 | 3000000000435892109 |&lt;BR /&gt;| 5086328484 | 3000000000435893173 |&lt;BR /&gt;+-------------+----------------------+--+&lt;BR /&gt;5 rows selected (3.048 seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what could be the reason ?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:26:12 GMT</pubDate>
    <dc:creator>MSharma</dc:creator>
    <dc:date>2022-09-16T11:26:12Z</dc:date>
    <item>
      <title>Output formatting not correct impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53425#M59228</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;Query result format is not correct ,also one column data is not populating in Impala .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://neocc9hddn20.prod.com:2&amp;gt; select mtcn_nr,attemptid from compliance.core_Rtra_attempts where year=2017 and month=2 limit 5;&lt;BR /&gt;0289234372&lt;BR /&gt;0724186390&lt;BR /&gt;9440690205&lt;BR /&gt;3311840200&lt;BR /&gt;1729311363&lt;BR /&gt;+----------+------------+--+&lt;BR /&gt;| mtcn_nr | attemptid |&lt;BR /&gt;+----------+------------+--+&lt;BR /&gt;+----------+------------+--+&lt;BR /&gt;No rows selected (1.156 seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while same is workijng fine in hive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://neocc9hdmn01.prod.com:1&amp;gt; select mtcn_nr,attemptid from compliance.core_Rtra_attempts where year=2017 and month=2 limit 5;&lt;BR /&gt;+-------------+----------------------+--+&lt;BR /&gt;| mtcn_nr | attemptid |&lt;BR /&gt;+-------------+----------------------+--+&lt;BR /&gt;| 8169184643 | 3000000000435887282 |&lt;BR /&gt;| 7747378580 | 3000000000435891774 |&lt;BR /&gt;| 3628896948 | 3000000000435891859 |&lt;BR /&gt;| 7025164684 | 3000000000435892109 |&lt;BR /&gt;| 5086328484 | 3000000000435893173 |&lt;BR /&gt;+-------------+----------------------+--+&lt;BR /&gt;5 rows selected (3.048 seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what could be the reason ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:26:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53425#M59228</guid>
      <dc:creator>MSharma</dc:creator>
      <dc:date>2022-09-16T11:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Output formatting not correct impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53429#M59229</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/14740"&gt;@MSharma&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to apply the below command before use the table across the services&lt;/P&gt;&lt;PRE&gt;INVALIDATE METADATA [[db_name.]table_name]&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_invalidate_metadata.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_invalidate_metadata.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 19:36:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53429#M59229</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-04-10T19:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Output formatting not correct impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53431#M59230</link>
      <description>&lt;P&gt;Hi saranvisa ,&lt;/P&gt;&lt;P&gt;this is working fine if i run this query in impala-shell ,but not working &amp;nbsp;if use beeline for impala.&lt;/P&gt;&lt;P&gt;[neocc9hddn20.prod.com:21000] &amp;gt; select mtcn_nr,attemptid from compliance.core_Rtra_attempts where year=2017 and month=2 limit 5;&lt;BR /&gt;Query: select mtcn_nr,attemptid from compliance.core_Rtra_attempts where year=2017 and month=2 limit 5&lt;BR /&gt;+------------+---------------------+&lt;BR /&gt;| mtcn_nr | attemptid |&lt;BR /&gt;+------------+---------------------+&lt;BR /&gt;| 6406187702 | 3000000000435887933 |&lt;BR /&gt;| 2503805652 | 3000000000435888578 |&lt;BR /&gt;| 8154005138 | 3000000000435891262 |&lt;BR /&gt;| 1984616774 | 3000000000435893168 |&lt;BR /&gt;| 1953542532 | 3000000000435894625 |&lt;BR /&gt;+------------+---------------------+&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:34:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53431#M59230</guid>
      <dc:creator>MSharma</dc:creator>
      <dc:date>2017-04-10T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Output formatting not correct impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53614#M59231</link>
      <description>&lt;P&gt;Please use the impala JDBC driver not hive jdbc driver for accessing the impala via beeline.&lt;/P&gt;&lt;PRE&gt;root@nightly59-unsecure-3 ~]# mkdir -p /root/impala-jdbc/jdbc
[root@nightly59-unsecure-3 ~]# hadoop classpath
/etc/hadoop/conf:/opt/cloudera/parcels/CDH-5.9.3-1.cdh5.9.3.p0.56/lib/hadoop/libexec/../../hadoop/lib/*:/opt/clo...
[root@nightly59-unsecure-3 ~]# cd /root/impala-jdbc/jdbc/
[root@nightly59-unsecure-3 jdbc]# ll
total 13584
-rwxr-xr-x 1 root root 1554773 Apr 10 23:46 ImpalaJDBC4.jar
-rwxr-xr-x 1 root root 1307923 Apr 10 23:46 TCLIServiceClient.jar
-rwxr-xr-x 1 root root   46725 Apr 10 23:45 commons-codec-1.3.jar
-rwxr-xr-x 1 root root   60686 Apr 10 23:45 commons-logging-1.1.1.jar
-rwxr-xr-x 1 root root 7670596 Apr 10 23:45 hive_metastore.jar
-rwxr-xr-x 1 root root  596600 Apr 10 23:45 hive_service.jar
-rwxr-xr-x 1 root root  352585 Apr 10 23:46 httpclient-4.1.3.jar
-rwxr-xr-x 1 root root  181201 Apr 10 23:46 httpcore-4.1.3.jar
-rwxr-xr-x 1 root root  275186 Apr 10 23:46 libfb303-0.9.0.jar
-rwxr-xr-x 1 root root  347531 Apr 10 23:46 libthrift-0.9.0.jar
-rwxr-xr-x 1 root root  367444 Apr 10 23:46 log4j-1.2.14.jar
-rwxr-xr-x 1 root root  294796 Apr 10 23:46 ql.jar
-rwxr-xr-x 1 root root   23671 Apr 10 23:46 slf4j-api-1.5.11.jar
-rwxr-xr-x 1 root root    9693 Apr 10 23:46 slf4j-log4j12-1.5.11.jar
-rwxr-xr-x 1 root root  792964 Apr 10 23:46 zookeeper-3.4.6.jar
[root@nightly59-unsecure-3 jdbc]# export HADOOP_CLASSPATH=`hadoop classpath`:/opt/cloudera/parcels/CDH-*/lib/hive/lib:/root/impala-jdbc/jdbc/*
[root@nightly59-unsecure-3 jdbc]# beeline
beeline&amp;gt; !connect 'jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0'
Connecting to jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0
Enter username for jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0: 
Enter password for jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0: 
Connected to: Impala (version 2.7.0-cdh5.9.x)
Driver: ImpalaJDBC (version 02.05.37.1057)
Error: [Simba][JDBC](11975) Unsupported transaction isolation level: 4. (state=HY000,code=11975)
0: jdbc:impala://nightly59-unsecure-3.gce.clo&amp;gt; show tables;
+------------+--+
|    name    |
+------------+--+
| customers  |
| sample_07  |
| sample_08  |
| web_logs   |
+------------+--+
4 rows selected (0.177 seconds)
0: jdbc:impala://nightly59-unsecure-3.gce.clo&amp;gt; select * from customers limit 5;
+--------+---------------------+--+
|   id   |        name         |
+--------+---------------------+--+
| 75012  | Dorothy Wilk        |
| 17254  | Martin Johnson      |
| 12532  | Melvin Garcia       |
| 42632  | Raymond S. Vestal   |
| 77913  | Betty J. Giambrone  |
+--------+---------------------+--+
5 rows selected (0.523 seconds)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;For the detail information, please check this document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/impala_jdbc.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/impala_jdbc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 06:04:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53614#M59231</guid>
      <dc:creator>Bosoon</dc:creator>
      <dc:date>2017-04-13T06:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Output formatting not correct impala</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53615#M59232</link>
      <description>&lt;P&gt;Please use the impala jdbc not hive jdbc like this:&lt;/P&gt;&lt;PRE&gt;[root@nightly59-unsecure-3 ~]# mkdir -p /root/impala-jdbc/jdbc
[root@nightly59-unsecure-3 ~]# hadoop classpath
/etc/hadoop/conf:/opt/cloudera/parcels/CDH-5.9.3-1.cdh5.9.3.p0.56/lib/hadoop/libexec/../../hadoop/lib/*:/opt/clo...
[root@nightly59-unsecure-3 ~]# cd /root/impala-jdbc/jdbc/
[root@nightly59-unsecure-3 jdbc]# ll
total 13584
-rwxr-xr-x 1 root root 1554773 Apr 10 23:46 ImpalaJDBC4.jar
-rwxr-xr-x 1 root root 1307923 Apr 10 23:46 TCLIServiceClient.jar
-rwxr-xr-x 1 root root   46725 Apr 10 23:45 commons-codec-1.3.jar
-rwxr-xr-x 1 root root   60686 Apr 10 23:45 commons-logging-1.1.1.jar
-rwxr-xr-x 1 root root 7670596 Apr 10 23:45 hive_metastore.jar
-rwxr-xr-x 1 root root  596600 Apr 10 23:45 hive_service.jar
-rwxr-xr-x 1 root root  352585 Apr 10 23:46 httpclient-4.1.3.jar
-rwxr-xr-x 1 root root  181201 Apr 10 23:46 httpcore-4.1.3.jar
-rwxr-xr-x 1 root root  275186 Apr 10 23:46 libfb303-0.9.0.jar
-rwxr-xr-x 1 root root  347531 Apr 10 23:46 libthrift-0.9.0.jar
-rwxr-xr-x 1 root root  367444 Apr 10 23:46 log4j-1.2.14.jar
-rwxr-xr-x 1 root root  294796 Apr 10 23:46 ql.jar
-rwxr-xr-x 1 root root   23671 Apr 10 23:46 slf4j-api-1.5.11.jar
-rwxr-xr-x 1 root root    9693 Apr 10 23:46 slf4j-log4j12-1.5.11.jar
-rwxr-xr-x 1 root root  792964 Apr 10 23:46 zookeeper-3.4.6.jar
[root@nightly59-unsecure-3 jdbc]# export HADOOP_CLASSPATH=`hadoop classpath`:/opt/cloudera/parcels/CDH-*/lib/hive/lib:/root/impala-jdbc/jdbc/*
[root@nightly59-unsecure-3 jdbc]# beeline
beeline&amp;gt; !connect 'jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0'
Connecting to jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0
Enter username for jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0: 
Enter password for jdbc:impala://nightly59-unsecure-3.gce.cloudera.com:21050;AuthMech=0: 
Connected to: Impala (version 2.7.0-cdh5.9.x)
Driver: ImpalaJDBC (version 02.05.37.1057)
Error: [Simba][JDBC](11975) Unsupported transaction isolation level: 4. (state=HY000,code=11975)
0: jdbc:impala://nightly59-unsecure-3.gce.clo&amp;gt; show tables;
+------------+--+
|    name    |
+------------+--+
| customers  |
| sample_07  |
| sample_08  |
| web_logs   |
+------------+--+
4 rows selected (0.177 seconds)
0: jdbc:impala://nightly59-unsecure-3.gce.clo&amp;gt; select * from customers limit 5;
+--------+---------------------+--+
|   id   |        name         |
+--------+---------------------+--+
| 75012  | Dorothy Wilk        |
| 17254  | Martin Johnson      |
| 12532  | Melvin Garcia       |
| 42632  | Raymond S. Vestal   |
| 77913  | Betty J. Giambrone  |
+--------+---------------------+--+
5 rows selected (0.523 seconds)&lt;/PRE&gt;&lt;P&gt;For the detail information, please check this document.&lt;BR /&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/impala_jdbc.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/impala_jdbc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 06:01:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Output-formatting-not-correct-impala/m-p/53615#M59232</guid>
      <dc:creator>Bosoon</dc:creator>
      <dc:date>2017-04-13T06:01:03Z</dc:date>
    </item>
  </channel>
</rss>

