Category : partition

I want to have the all possibilities of path. I have this os.path.realpath(/dev/disk/by-id/wwn-0x{0}’.format(variable)). variable is 40014ee0aee34570 for example and this show me dev with this id. But I need to check if there is also 40014ee0aee34570-part1, 40014ee0aee34570-part2 and etc. For now I can do it like this os.path.realpath(‘/dev/disk/by-id/wwn-0x{0}{1}’.format(variable, ‘-part1’) How I can do check for ..

Read more

I need to compare data changes in two partitions of table in Hive. Specifically, I have two partitions (ptn_dt=’01-31-2019′ and ptn_dt=’02-28-2019′). Each partition contains the following columns – num_key and active_indicator (true or false). I need to identify the following: a. Count of NEW entries (num_key present in ptn_dt=’02-28-2019′ but nut in ptn_dt=’01-31-2019′), with active_indicator=’true’ ..

Read more