Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assuming this is a debugging scenario & all you care about is looking at them somehow.
- HIVE_CONF_DIR=/etc/hive2/conf/conf.server/ hive --service metatool -executeJDOQL 'select dbName+"."+tableName+"::"+colName+"="+numDVs from org.apache.hadoop.hive.metastore.model.MTableColumnStatistics';
- HIVE_CONF_DIR=/etc/hive2/conf/conf.server/ hive --service metatool -executeJDOQL 'select dbName+"."+tableName+"("+partitionName+")::"+colName+"="+numDVs from org.apache.hadoop.hive.metastore.model.MPartitionColumnStatistics';
- You can also read out numNulls, but the min-max etc require you to know the column type ahead of time, like longHighValue or longLowValue for all integers.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement