You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by el...@apache.org on 2018/04/19 03:41:21 UTC

phoenix git commit: PHOENIX-4693 Force random ports for the HBase MiniCluster

Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 5e9a25763 -> 0a2ff12d2


PHOENIX-4693 Force random ports for the HBase MiniCluster

HBase made a change which turned off random ports by default. That change
will likely be reverted, but we can make sure it doesn't cause us any
problems downstream by forcing it on.


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/0a2ff12d
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/0a2ff12d
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/0a2ff12d

Branch: refs/heads/5.x-HBase-2.0
Commit: 0a2ff12d2a644e7d0cb2cb257697fc7c45f5804b
Parents: 5e9a257
Author: Josh Elser <el...@apache.org>
Authored: Wed Apr 18 15:59:31 2018 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Wed Apr 18 23:26:59 2018 -0400

----------------------------------------------------------------------
 phoenix-core/src/it/resources/hbase-site.xml  |  4 +++
 phoenix-spark/src/it/resources/hbase-site.xml | 40 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0a2ff12d/phoenix-core/src/it/resources/hbase-site.xml
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/resources/hbase-site.xml b/phoenix-core/src/it/resources/hbase-site.xml
index 691b702..326ef70 100644
--- a/phoenix-core/src/it/resources/hbase-site.xml
+++ b/phoenix-core/src/it/resources/hbase-site.xml
@@ -33,4 +33,8 @@
     version is X.X.X-SNAPSHOT"
     </description>
   </property>
+  <property>
+    <name>hbase.localcluster.assign.random.ports</name>
+    <value>true</value>
+  </property>
 </configuration>

http://git-wip-us.apache.org/repos/asf/phoenix/blob/0a2ff12d/phoenix-spark/src/it/resources/hbase-site.xml
----------------------------------------------------------------------
diff --git a/phoenix-spark/src/it/resources/hbase-site.xml b/phoenix-spark/src/it/resources/hbase-site.xml
new file mode 100644
index 0000000..326ef70
--- /dev/null
+++ b/phoenix-spark/src/it/resources/hbase-site.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<configuration>
+  <property>
+    <name>hbase.defaults.for.version.skip</name>
+    <value>true</value>
+    <description>
+    Set to true to skip the 'hbase.defaults.for.version' check.
+    Setting this to true can be useful in contexts other than
+    the other side of a maven generation; i.e. running in an
+    ide.  You'll want to set this boolean to true to avoid
+    seeing the RuntimException complaint: "hbase-default.xml file
+    seems to be for and old version of HBase (@@@VERSION@@@), this
+    version is X.X.X-SNAPSHOT"
+    </description>
+  </property>
+  <property>
+    <name>hbase.localcluster.assign.random.ports</name>
+    <value>true</value>
+  </property>
+</configuration>