you can use
DataFrame tableMeta = sqlContext.sql(String.format("DESCRIBE FORMATTED %s", tableName));
String location = tableMeta.filter("result LIKE 'Location:%'").first().getString(0);
regex, . , ,
String partitionLocation = location + "/" + partitionKey
(partitionKey - - dt = 20160329/hr = 21)
df.write.parquet(partitionLocation)
( , dataframe, . , - )