Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 19BDE200B40 for ; Fri, 1 Jul 2016 19:03:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1849B160A61; Fri, 1 Jul 2016 17:03:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 60594160A4D for ; Fri, 1 Jul 2016 19:03:52 +0200 (CEST) Received: (qmail 34014 invoked by uid 500); 1 Jul 2016 17:03:51 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 34005 invoked by uid 99); 1 Jul 2016 17:03:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 17:03:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 43588E009D; Fri, 1 Jul 2016 17:03:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tedyu@apache.org To: commits@hbase.apache.org Message-Id: <9bb81a2faed54488bc4e7b4fe7f643ed@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-16125 RegionMover uses hardcoded, Unix-style tmp folder - breaks Windows (Vladimir Rodionov) Date: Fri, 1 Jul 2016 17:03:51 +0000 (UTC) archived-at: Fri, 01 Jul 2016 17:03:53 -0000 Repository: hbase Updated Branches: refs/heads/branch-1 a345aa870 -> 2aa8cdc98 HBASE-16125 RegionMover uses hardcoded, Unix-style tmp folder - breaks Windows (Vladimir Rodionov) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2aa8cdc9 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2aa8cdc9 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2aa8cdc9 Branch: refs/heads/branch-1 Commit: 2aa8cdc98979e6353276100d4cc7ba7001795696 Parents: a345aa8 Author: tedyu Authored: Fri Jul 1 10:03:45 2016 -0700 Committer: tedyu Committed: Fri Jul 1 10:03:45 2016 -0700 ---------------------------------------------------------------------- bin/region_mover.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/2aa8cdc9/bin/region_mover.rb ---------------------------------------------------------------------- diff --git a/bin/region_mover.rb b/bin/region_mover.rb index 73cc1bb..3231cab 100644 --- a/bin/region_mover.rb +++ b/bin/region_mover.rb @@ -428,7 +428,7 @@ end def getFilename(options, targetServer, port) filename = options[:file] if not filename - filename = "/tmp/" + ENV['USER'] + targetServer + ":" + port + filename = File.join(Dir.tmpdir(), ENV['USER'] + targetServer + "_" + port.to_s) end return filename end @@ -441,7 +441,7 @@ optparse = OptionParser.new do |opts| opts.separator 'Load or unload regions by moving one at a time' options[:file] = nil options[:maxthreads] = 1 - opts.on('-f', '--filename=FILE', 'File to save regions list into unloading, or read from loading; default /tmp/') do |file| + opts.on('-f', '--filename=FILE', 'File to save regions list into unloading, or read from loading; default /USER_TMP_DIR/') do |file| options[:file] = file end opts.on('-h', '--help', 'Display usage information') do