diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index df1032d..359c89c 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -1655,9 +1655,9 @@ private int archive(Hive db, AlterTableSimpleDesc simpleDesc, if(harPartitionDir.getUserInfo() != null) { authority.append(harPartitionDir.getUserInfo()).append("@"); } - authority.append(harPartitionDir.getHost()).append(":"); + authority.append(harPartitionDir.getHost()); if(harPartitionDir.getPort() != -1) { - authority.append(harPartitionDir.getPort()); + authority.append(":").append(harPartitionDir.getPort()); } Path harPath = new Path(harPartitionDir.getScheme(), authority.toString(),