passing multiple dates as a paramters to Hive query

Collect array of distinct values using collect_set and concatenate it with delimiter ‘,’. This will produce list without outer quotes 2009-02-01′,’2009-04-01 and in the second script add outer quotes ‘ also, or you can add them in the first query. And when executing in inline sql (-e option) you do not need to pass hiveconf … Read more

Sqoop import : composite primary key and textual primary key

Specify split column manually. Split column is not necessarily equal to PK. You can have complex PK and some int Split column. You can specify any integer column or even simple function (some simple function like substring or cast, not aggregation or analytic). Split column preferably should be evenly distributed integer. For example if your … Read more