phoenix git commit: PHOENIX-1552 Add a self-contained sandbox

2015-01-12 Thread greid
Repository: phoenix
Updated Branches:
  refs/heads/4.0 7578ee92b - 968e431b3


PHOENIX-1552 Add a self-contained sandbox

Add a sandbox that can be started via the phoenix_sandbox.py
script.


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

Branch: refs/heads/4.0
Commit: 968e431b3e750d515ff29a4d3b9dc8fa8db82bc7
Parents: 7578ee9
Author: Gabriel Reid gabri...@ngdata.com
Authored: Tue Dec 23 15:44:46 2014 +0100
Committer: Gabriel Reid gabri...@ngdata.com
Committed: Mon Jan 12 10:25:04 2015 +0100

--
 bin/phoenix_sandbox.py  | 59 +
 bin/sandbox-log4j.properties| 45 +
 phoenix-core/pom.xml| 15 +
 .../src/it/java/org/apache/phoenix/Sandbox.java | 67 
 4 files changed, 186 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/968e431b/bin/phoenix_sandbox.py
--
diff --git a/bin/phoenix_sandbox.py b/bin/phoenix_sandbox.py
new file mode 100755
index 000..c4fb841
--- /dev/null
+++ b/bin/phoenix_sandbox.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python
+
+#
+# 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.
+#
+
+
+import os
+import subprocess
+import sys
+import phoenix_utils
+
+phoenix_utils.setPath()
+
+base_dir = os.path.join(phoenix_utils.current_dir, '..')
+phoenix_target_dir = os.path.join(base_dir, 'phoenix-core', 'target')
+
+cp_file_path = os.path.join(phoenix_target_dir, 'cached_classpath.txt')
+
+
+if not os.path.exists(cp_file_path):
+sys.err.write(cached_classpath.txt is not present under 
++ phoenix-core/target, please rebuild the project first)
+sys.exit(1)
+
+logging_config = os.path.join(base_dir, 'bin', 'sandbox-log4j.properties')
+
+cp_components = [phoenix_target_dir + /*]
+with open(cp_file_path, 'rb') as cp_file:
+cp_components.append(cp_file.read())
+
+java_cmd = (java -Dlog4j.configuration=file:%s  +
+-cp %s org.apache.phoenix.Sandbox) % (
+logging_config, :.join(cp_components))
+
+proc = subprocess.Popen(java_cmd, shell=True)
+try:
+proc.wait()
+except KeyboardInterrupt:
+print Shutting down sandbox...
+proc.terminate()
+
+proc.wait()
+
+print Sandbox is stopped

http://git-wip-us.apache.org/repos/asf/phoenix/blob/968e431b/bin/sandbox-log4j.properties
--
diff --git a/bin/sandbox-log4j.properties b/bin/sandbox-log4j.properties
new file mode 100644
index 000..a30f129
--- /dev/null
+++ b/bin/sandbox-log4j.properties
@@ -0,0 +1,45 @@
+#
+#
+# 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.
+#
+#
+
+# Define some default values that can be overridden by system properties
+sandbox.root.logger=INFO,console
+
+# Define the root logger to the system property plsql.root.logger.
+log4j.rootLogger=${sandbox.root.logger}
+
+# Logging Threshold
+log4j.threshold=WARN
+
+#
+# console
+# Add console 

phoenix git commit: PHOENIX-1552 Add a self-contained sandbox

2015-01-12 Thread greid
Repository: phoenix
Updated Branches:
  refs/heads/master a6538d792 - 13aa61a86


PHOENIX-1552 Add a self-contained sandbox

Add a sandbox that can be started via the phoenix_sandbox.py
script.


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

Branch: refs/heads/master
Commit: 13aa61a86f0e2de84df184646c9ea7d730b0720f
Parents: a6538d7
Author: Gabriel Reid gabri...@ngdata.com
Authored: Tue Dec 23 15:44:46 2014 +0100
Committer: Gabriel Reid gabri...@ngdata.com
Committed: Mon Jan 12 10:24:53 2015 +0100

--
 bin/phoenix_sandbox.py  | 59 +
 bin/sandbox-log4j.properties| 45 +
 phoenix-core/pom.xml| 15 +
 .../src/it/java/org/apache/phoenix/Sandbox.java | 67 
 4 files changed, 186 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/13aa61a8/bin/phoenix_sandbox.py
--
diff --git a/bin/phoenix_sandbox.py b/bin/phoenix_sandbox.py
new file mode 100755
index 000..c4fb841
--- /dev/null
+++ b/bin/phoenix_sandbox.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python
+
+#
+# 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.
+#
+
+
+import os
+import subprocess
+import sys
+import phoenix_utils
+
+phoenix_utils.setPath()
+
+base_dir = os.path.join(phoenix_utils.current_dir, '..')
+phoenix_target_dir = os.path.join(base_dir, 'phoenix-core', 'target')
+
+cp_file_path = os.path.join(phoenix_target_dir, 'cached_classpath.txt')
+
+
+if not os.path.exists(cp_file_path):
+sys.err.write(cached_classpath.txt is not present under 
++ phoenix-core/target, please rebuild the project first)
+sys.exit(1)
+
+logging_config = os.path.join(base_dir, 'bin', 'sandbox-log4j.properties')
+
+cp_components = [phoenix_target_dir + /*]
+with open(cp_file_path, 'rb') as cp_file:
+cp_components.append(cp_file.read())
+
+java_cmd = (java -Dlog4j.configuration=file:%s  +
+-cp %s org.apache.phoenix.Sandbox) % (
+logging_config, :.join(cp_components))
+
+proc = subprocess.Popen(java_cmd, shell=True)
+try:
+proc.wait()
+except KeyboardInterrupt:
+print Shutting down sandbox...
+proc.terminate()
+
+proc.wait()
+
+print Sandbox is stopped

http://git-wip-us.apache.org/repos/asf/phoenix/blob/13aa61a8/bin/sandbox-log4j.properties
--
diff --git a/bin/sandbox-log4j.properties b/bin/sandbox-log4j.properties
new file mode 100644
index 000..a30f129
--- /dev/null
+++ b/bin/sandbox-log4j.properties
@@ -0,0 +1,45 @@
+#
+#
+# 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.
+#
+#
+
+# Define some default values that can be overridden by system properties
+sandbox.root.logger=INFO,console
+
+# Define the root logger to the system property plsql.root.logger.
+log4j.rootLogger=${sandbox.root.logger}
+
+# Logging Threshold
+log4j.threshold=WARN
+
+#
+# console
+# Add 

phoenix git commit: PHOENIX-1552 Add a self-contained sandbox

2015-01-12 Thread greid
Repository: phoenix
Updated Branches:
  refs/heads/3.0 912e530ae - 2e957f63c


PHOENIX-1552 Add a self-contained sandbox

Add a sandbox that can be started via the phoenix_sandbox.py
script.


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

Branch: refs/heads/3.0
Commit: 2e957f63c7b095d5c36f2ce86eae7ad256d55108
Parents: 912e530
Author: Gabriel Reid gabri...@ngdata.com
Authored: Tue Dec 23 15:44:46 2014 +0100
Committer: Gabriel Reid gabri...@ngdata.com
Committed: Mon Jan 12 10:26:19 2015 +0100

--
 bin/phoenix_sandbox.py  | 59 +
 bin/sandbox-log4j.properties| 45 +
 phoenix-core/pom.xml| 19 ++
 .../src/it/java/org/apache/phoenix/Sandbox.java | 67 
 4 files changed, 190 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/2e957f63/bin/phoenix_sandbox.py
--
diff --git a/bin/phoenix_sandbox.py b/bin/phoenix_sandbox.py
new file mode 100755
index 000..c4fb841
--- /dev/null
+++ b/bin/phoenix_sandbox.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python
+
+#
+# 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.
+#
+
+
+import os
+import subprocess
+import sys
+import phoenix_utils
+
+phoenix_utils.setPath()
+
+base_dir = os.path.join(phoenix_utils.current_dir, '..')
+phoenix_target_dir = os.path.join(base_dir, 'phoenix-core', 'target')
+
+cp_file_path = os.path.join(phoenix_target_dir, 'cached_classpath.txt')
+
+
+if not os.path.exists(cp_file_path):
+sys.err.write(cached_classpath.txt is not present under 
++ phoenix-core/target, please rebuild the project first)
+sys.exit(1)
+
+logging_config = os.path.join(base_dir, 'bin', 'sandbox-log4j.properties')
+
+cp_components = [phoenix_target_dir + /*]
+with open(cp_file_path, 'rb') as cp_file:
+cp_components.append(cp_file.read())
+
+java_cmd = (java -Dlog4j.configuration=file:%s  +
+-cp %s org.apache.phoenix.Sandbox) % (
+logging_config, :.join(cp_components))
+
+proc = subprocess.Popen(java_cmd, shell=True)
+try:
+proc.wait()
+except KeyboardInterrupt:
+print Shutting down sandbox...
+proc.terminate()
+
+proc.wait()
+
+print Sandbox is stopped

http://git-wip-us.apache.org/repos/asf/phoenix/blob/2e957f63/bin/sandbox-log4j.properties
--
diff --git a/bin/sandbox-log4j.properties b/bin/sandbox-log4j.properties
new file mode 100644
index 000..a30f129
--- /dev/null
+++ b/bin/sandbox-log4j.properties
@@ -0,0 +1,45 @@
+#
+#
+# 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.
+#
+#
+
+# Define some default values that can be overridden by system properties
+sandbox.root.logger=INFO,console
+
+# Define the root logger to the system property plsql.root.logger.
+log4j.rootLogger=${sandbox.root.logger}
+
+# Logging Threshold
+log4j.threshold=WARN
+
+#
+# console
+# Add