Member since
03-06-2020
398
Posts
54
Kudos Received
35
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
132 | 11-21-2024 10:12 PM | |
990 | 07-23-2024 10:52 PM | |
1135 | 05-16-2024 12:27 AM | |
3218 | 05-01-2024 04:50 AM | |
1407 | 03-19-2024 09:23 AM |
08-12-2021
05:57 PM
Hi @lalala , This behavior was caused by the csv module when impala is using it to export the data. # csv.writer expects a file handle to the input. # cStringIO is used as the temporary buffer. temp_buffer = StringIO() writer = csv.writer(temp_buffer, delimiter=self.field_delim, lineterminator='\n', quoting=csv.QUOTE_MINIMAL) writer.writerows(rows) Seems to be we cannot change this since it is needs to modified at code level. [1]. https://github.com/apache/impala/blob/014c455aaaa38010ae706228f7b439c080c0bc7d/shell/shell_output.py#L64
... View more
08-12-2021
05:21 PM
Hi, Can you provide the sample output for the same where you are seeing the double quotation mark? Regards, Chethan YM
... View more
08-10-2021
05:21 PM
Can you do check 4200 port is listening or not.. Below is similar cloudera community post for your reference: https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-to-port-4200-WebSSH-using-HDP-2-5/td-p/133615
... View more
08-09-2021
05:40 PM
Hi, What is the query you are using to read the data from table? can you attach its "query profile" and coordinator logs to have a look? Regards, Chethan YM
... View more
08-08-2021
09:47 AM
Hi, Can you provide these below details to understand the issue: 1. Initially from where you created the table in hive or impala? 2. Provide the DDL of the table that you are trying to query from impala. # show create table <table-name>; 3. list the files from hdfs path ( you will see the table path in the DDL def. ) # hdfs dfs -ls /table/path/ 4. Are you able to access the same table data from hive?( if you are facing the issues from impala? vice versa) 5. Go to HS2 logs/coordinator logs copy the entire error stack trace for the query that is failing and paste here. I think these are the basic details needed for analysing the issue. Regards, Chethan YM
... View more
08-08-2021
09:33 AM
Hi, Please do attach the screenshot of the error and let us know what exactly you are trying to achieve and where you are facing the issue. Regards, Chethan YM
... View more
08-08-2021
09:28 AM
Hi, Can you try the query something like below to insert the data from multiple tables? insert into DemoTable1945(StudentName,StudentAge) select tbl1.Name,tbl2.Age from DemoTable1943 tbl1,DemoTable1944 tbl2; Let us know if this helps. Regards, Chethan YM
... View more
07-29-2021
07:09 AM
Hi, I do not think we have a command to check all the table stats in one go, If you would like to update the stats on all tables i think you should prepare a custom script for it. -> List all the tables from "show tables" command -> copy the table names and run "show table stats <table-name>" on all the tables. -> And then "compute stats <table-name>" on all the tables. You can make a custom shell script with a for loop to run the compute stats on all the tables. All this should be done from terminal.
... View more
07-28-2021
07:31 PM
Hi, I have tested the same in my lab cluster, seems to be multi character delimiters will not works in impala. Below is my testing when i tried with ',|' Failing: Query: Create table test ( name string, place string ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',|' STORED AS TEXTFILE TBLPROPERTIES('serialization.null.format'='') ERROR: AnalysisException: ESCAPED BY values and LINE/FIELD terminators must be specified as a single character or as a decimal value in the range [-128:127]: ,| Created: [host-1abc.cloudera.com:21000] default> Create table test ( name string, place string ) ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' > STORED AS TEXTFILE > TBLPROPERTIES('serialization.null.format'=''); Query: Create table test ( name string, place string ) ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' STORED AS TEXTFILE TBLPROPERTIES('serialization.null.format'='') +-------------------------+ | summary | +-------------------------+ | Table has been created. | +-------------------------+ Created: [host-1abc.cloudera.com:21000] default> Create table test1 ( name string, place string ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' > STORED AS TEXTFILE > TBLPROPERTIES('serialization.null.format'=''); Query: Create table test1 ( name string, place string ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE TBLPROPERTIES('serialization.null.format'='') +-------------------------+ | summary | +-------------------------+ | Table has been created. | +-------------------------+
... View more
07-05-2021
12:16 AM
Hello, Have you tried with a query like this -> select <column-name> from <table-name>; If this is not your expectation let us know in detail regarding the requirement. Regards, Chethan YM
... View more