Member since
07-26-2016
11
Posts
1
Kudos Received
0
Solutions
09-19-2018
09:16 PM
I understand this is older post but I am getting same problem. Can you please provide solution if it is resolved for you? Thanks
... View more
07-17-2017
06:22 PM
I have a hive table with a column actions that is a mix of has json array and elements. Sample data looks as follows - [{"type":"FinancialTransferAction","value":"success"},{"EventPublisherData":{"financialTransId":"VSxxx","debitTransactionId":"xxx6"}}] [{"type":"SendFundsAction","value":"success"},{"EventPublisherData":{"financialTransId":"VSAxxx","debitTransactionId":"xxx6"}}] {"type":"CreateAccountAction","value":"failure"} {"type":"CreateAccountAction","value":"failure"} {"type":"PaymentInstrumentAction","value":"cvvFailure"} {"type":"PaymentInstrumentAction","value":"cvvFailure"} {"type":"AuthenticationAction","value":"success"} {"type":"VerificationAction","value":"success"} [{"type":"FinancialTransferAction","value":"success"},{"EventPublisherData":{"financialTransId":"VSxxxx","debitTransactionId":"7xxxxx"}}] [{"type":"SendFundsAction","value":"success"},{"EventPublisherData":{"financialTransId":"VSxxxxx","debitTransactionId":"xxxxx1"}}] I am looking for a way to flatten out the json and have a view with columns for type, value, financialTransId and creditTransactionId with corresponding values. I tried following query - select v1.type,v1.value,v2.creditTransactionId,v2.financialTransId from nudetect lateral view json_tuple(nudetect.actions,'type','value','EventPublisherData') v1 as type,value,EventPublisherData lateral view json_tuple(v1.EventPublisherData,'creditTransactionId','financialTransId') v2 as creditTransactionId,financialTransId where component='nudetect_push' and length(actions)>2 limit 4 It returns NULL for financialTransId and creditTransactionId . Any help is appreciated.
... View more
Labels:
- Labels:
-
Apache Hive
08-23-2016
04:15 PM
After successfully taking hbase snapshot of table, if hfiles for the table gets removed, will my snapshot be still valid? Snapshot was taken as hbase shell> snapshot 'tableName', 'tableSnapshot' Soon after this, if all corresponding hfiles for the table is removed at OS level, what happens to the snapshot?
... View more
Labels:
- Labels:
-
Apache HBase