mobilize-hive 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mobilize-hive/handlers/hive.rb +1 -1
- data/lib/mobilize-hive/version.rb +1 -1
- metadata +1 -1
@@ -406,7 +406,7 @@ module Mobilize
|
|
406
406
|
part_stmt = part_pairs.map{|pp| "#{pp.first}='#{pp.second}'"}.join(",")
|
407
407
|
hdfs_dir = "#{target_table_stats['location']}/#{part_dir}"
|
408
408
|
hdfs_source_path = "/#{hdfs_dir.split("/")[3..-2].join("/")}/#{base_filename}"
|
409
|
-
hdfs_target_path = "/#{hdfs_dir.split("/")[3..-1].join("/")}
|
409
|
+
hdfs_target_path = "/#{hdfs_dir.split("/")[3..-1].join("/")}"
|
410
410
|
#load partition into source path
|
411
411
|
puts "Writing to #{hdfs_source_path} for #{user} at #{Time.now.utc}"
|
412
412
|
Hdfs.write(hdfs_source_path,tpmv,user)
|