Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16918

Skip ReplCopyTask distcp for _metadata copying. Also enable -pb for distcp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • repl
    • None

    Description

      With HIVE-16686, we switched ReplCopyTask to always use a privileged DistCp. This, however, is incorrect for copying _metadata generated from a temporary scratch directory to hdfs. We need to change that so that routes to using a regular CopyTask. The issue with using distcp for this is that distcp launches from another job which may be queued on another machine, which does not have access to this file:// uri. Distcp should only ever be used when copying from non-localfilesystems.

      Also, in the spirit of following up HIVE-16686, we missed adding "-pb" as a default for invocations of distcp from hive. Adding that in. This would not be necessary if HADOOP-8143 had made it in, but till it doesn't go in, we need it.

      Attachments

        1. HIVE-16918.2.patch
          5 kB
          Sushanth Sowmyan
        2. HIVE-16918.patch
          5 kB
          Sushanth Sowmyan

        Issue Links

          Activity

            People

              sushanth Sushanth Sowmyan
              sushanth Sushanth Sowmyan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: