Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Block ID with Hive

Highlighted

Block ID with Hive

Rising Star

Hi dear experts!

 

does somebody know is there any way to get block ID within the hive?

like 

select col1,col2, BLOCK_ID from..

from the doc I found that not, but maybe there is some workaround or patch or it's possible to do within the different engine ( Spark for example..).

 

thank you!

2 REPLIES 2
Highlighted

Re: Block ID with Hive

Guru

Hi, 

 

Do you mean to get the HDFS BLOCK ID? I do not think that this is possible in the current hive. Not sure on the spark side though.

Re: Block ID with Hive

Rising Star

Thank you Eric!

 

do you have an idea how it's could be done rather than on Java?

Don't have an account?
Coming from Hortonworks? Activate your account here