Member since
11-04-2015
261
Posts
44
Kudos Received
33
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 9132 | 05-16-2024 03:10 AM | |
| 4210 | 01-17-2024 01:07 AM | |
| 3641 | 12-11-2023 02:10 AM | |
| 7062 | 10-11-2023 08:42 AM | |
| 4096 | 09-07-2023 01:08 AM |
08-31-2022
09:20 PM
Hi @Yosieam Thanks for sharing the code. You forgot to share the spark-submit/pyspark command. Please check what is executor/driver memory is passed to the spark-submit. Could you please confirm file is in local system/hdfs system.
... View more
08-05-2022
12:43 AM
The issue is resolved by adding Stored as textfile in the table creation query. CREATE External TABLE GeoIP2_ISP_Blocks_IPv4 ( Client string, ID int, Number int, Name string, ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' Stored as textfile <---------------------- this new line needs to be added WITH SERDEPROPERTIES ( "separatorChar" = "\,", "quoteChar" = "\"" ) LOCATION 'hdfs:///user/hive/warehouse/tips/' tblproperties ("skip.header.line.count"="1"); Cloudera has changed the default file format from txt to parquet. So we need to specify this line for text files. Thanks @mszurap for the help.
... View more
06-17-2022
05:34 AM
Thanks Guys.
... View more
06-10-2022
12:36 AM
I'm sure my source code file has UTF-8 encoding and I compiling the class by maven. When my SQL is set to : upsert into user_info(id, name, address, email, insert_time) values (?,cast(? as string),cast(? as string),?,?) it's works, but the url parameter “UseNativeQuery=1” does't works!
... View more
06-08-2022
04:08 AM
1 Kudo
Hi Andrea, Great to see that it has been found now and thanks for marking the post as answered. All the best, Miklos
... View more
06-08-2022
01:10 AM
Hi @tallamohan The direct usage of the Hive classes (CliSessionState, SessionState, Driver) in the provided code falls under the "Hive CLI" or "Hcat CLI" access, which is not supported in CDP: https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/upgrade/topics/hive-unsupported.html Please open a case on MyCloudera Support Portal to get that clarified. The recommended approach would be to use beeline and access the Hive service through HiveServer2. Best regards Miklos
... View more
06-05-2022
10:50 PM
1 Kudo
@mszurap Thanks for your detailed explanation this certainly helps.
... View more
06-03-2022
12:48 AM
That is great, thank you for sharing the solution! Best regards Miklos
... View more