Member since
11-29-2016
14
Posts
6
Kudos Received
0
Solutions
03-19-2024
10:39 PM
Hi everyone, I need to create HUE table separating "|" for insert like following values into table with removing all not required "" "94112605011"|"DEFAULT"|"FTTH_WEB FAMILY PLUS!PDL&Ec5@1706725800;94112605011;1704047400"|"COUNTER"|"u"|"0E-12"|"2023-12-31 18:30:00.000000"|"2024-01-31 18:30:00.000000"|"0"|"{""data"":{""o"":{""-t"":""ECS_BalanceContextInfo"",""m"":[{""-c"":""57a2"",""-v"":""1"",""a"":[{""-n"":""unitType"",""v"":{""-s"":""VOLUME""}},{""-n"":""offerId"",""v"":{""-s"":""15""}},{""-n"":""offerName"",""v"":{""-s"":""FTTH_WEB FAMILY PLUS""}},{""-n"":""offerQuota"",""v"":{""-s"":""42949672960""}},{""-n"":""quotaThreshold"",""v"":{""-s"":""0""}}]}],""o"":[{""-t"":""ECS_BalanceContextInfoBase"",""m"":[{""-c"":""5136"",""-v"":""1""},{""-c"":""8d18"",""-v"":""2"",""a"":[{""-n"":""subscriptionId"",""v"":{""-s"":""9411260501111152164097540010""}}]}]},{""-t"":""ECS""},{""-t"":""AVS"",""m"":[{""-c"":""e3a0"",""-v"":""1""}]}]}}}"|"{""a"":[""0""]}"|"BYTES"|"0E-12" i HAVE USED FOLLOWING COMMAND CREATE TABLE slt.OCS_BALANCE(SUBSCRIBERID STRING,PURSEID STRING,BALANCEID STRING,BALANCETYPE STRING,BALANCEFLAGS STRING,CREDITLIMIT STRING,EFFECTIVEDATE STRING,EXPIRYDATE STRING,PRIORITY STRING,CONTEXTINFO STRING,ROLLOVERAMOUNT STRING,UNITTYPE STRING,THRESHOLDALTERATION STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' WITH SERDEPROPERTIES ('serialization.format'=',', 'field.delim'=',') STORED AS TEXTFILE LOCATION '/temp/OCS_BALANCEVALUE'; Please guide me to create correct table
... View more
Labels:
- Labels:
-
Apache Hive
-
Cloudera Hue
03-18-2024
03:47 AM
1 Kudo
Thank you!
... View more
03-14-2024
11:28 PM
1 Kudo
Rename of the HADOOP/HUE table name Hi everyone, I need to rename the table name in HUE. i used following command. ALTER TABLE db.table1 RENAME TO db.table2; Please let me know the correct way to rename the table without any issue. Thank you.
... View more
Labels:
- Labels:
-
Cloudera Hue
09-22-2023
02:05 AM
Hi every one, How to find the standard cloudera ranger policy update for specific users related to the specific folder path, tables and etc... Thank you!!!
... View more
Labels:
06-29-2023
10:26 PM
Great... Thank you very much! it's working....
... View more
06-25-2023
09:55 PM
Hi,@mszurap Thanks for the reply.! I not got any errors after end the commands.it was just printing the result as the following. +-----------+ | _c0 | +-----------+ | 84300000 | +-----------+ I need to get the record count into the variable of "count" as following count=84300000
... View more
06-22-2023
10:09 PM
Hi everyone, We are unable to get the record count into the variable after Kerberos Authentication implementation and Ranger Installation. we are using following command but it's showing count by printing. Following is we used command I need to get the count into the variable. anyone please help me! count=$(beeline -u "jdbc:hive2://dev-lisa.realm.com:10000/default;principal=hive/dev-lisa.intranet.slt.com.lk@REALM.COM;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks" -n hadoopuser02 -e 'SELECT count(*) from table_name; ')
... View more
06-22-2023
12:18 AM
Thank you for the support comment. still issue not fixed. i think there is an issue in count1 and count2 getting commands. Please support?
... View more
06-19-2023
02:22 AM
Hi.....
We are using following commands to get the updated records count in our table after Kerberos Authentication implementation and Ranger Installation.
We get count1 variable before update the table
count1=$(beeline -u "jdbc:hive2://dev-lisa.realm.com:10000/default;principal=hive/dev-lisa.intranet.slt.com.lk@REALM.COM;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks" -n hadoopuser02 -e 'SELECT count(*) from table_name; ')
We get count2 variable after update the table
count2=$(beeline -u "jdbc:hive2://dev-lisa.realm.com:10000/default;principal=hive/dev-lisa.intranet.slt.com.lk@REALM.COM;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks" -n hadoopuser02 -e 'SELECT count(*) from table_name; ')
entries=$(echo "$count2-$count1")
we unable to get the "entries" value into variable. please support to fix this.
... View more