fluo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] mikewalch closed pull request #189: Updated Uno to use accumulo.properties for 2.0
Date Fri, 31 Aug 2018 15:06:35 GMT
mikewalch closed pull request #189: Updated Uno to use accumulo.properties for 2.0
URL: https://github.com/apache/fluo-uno/pull/189
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/impl/setup-accumulo.sh b/bin/impl/setup-accumulo.sh
index 306dddc..b05b2a6 100755
--- a/bin/impl/setup-accumulo.sh
+++ b/bin/impl/setup-accumulo.sh
@@ -41,13 +41,15 @@ tar xzf "$DOWNLOADS/$ACCUMULO_TARBALL" -C "$INSTALL"
 conf=$ACCUMULO_HOME/conf
 
 if [[ $ACCUMULO_VERSION =~ ^1\..*$ ]]; then
+  accumulo_conf=$conf/accumulo-site.xml
   cp "$conf"/examples/2GB/standalone/* "$conf"/
   $SED "s#localhost#$UNO_HOST#" "$conf/slaves"
-  cp "$UNO_HOME"/conf/accumulo/accumulo-site-1.0.xml "$conf"/accumulo-site.xml
+  cp "$UNO_HOME"/conf/accumulo/accumulo-site-1.0.xml "$accumulo_conf"
 else
+  accumulo_conf=$conf/accumulo.properties
   "$ACCUMULO_HOME"/bin/accumulo-cluster create-config
   $SED "s#localhost#$UNO_HOST#" "$conf/tservers"
-  cp "$UNO_HOME"/conf/accumulo/accumulo-site-2.0.xml "$conf"/accumulo-site.xml
+  cp "$UNO_HOME"/conf/accumulo/accumulo-2.0.properties "$accumulo_conf"
   $SED "s#instance[.]name=#instance.name=$ACCUMULO_INSTANCE#" "$conf"/accumulo-client.properties
   $SED "s#instance[.]zookeepers=localhost:2181#instance.zookeepers=$UNO_HOST:2181#" "$conf"/accumulo-client.properties
   $SED "s#auth[.]principal=#auth.principal=$ACCUMULO_USER#" "$conf"/accumulo-client.properties
@@ -62,11 +64,11 @@ if [[ $ACCUMULO_VERSION =~ ^1\..*$ ]]; then
 else
   $SED "s#tserver).*#tserver) JAVA_OPTS=\(\"\$\{JAVA_OPTS\[\@\]\}\" '-Xmx$ACCUMULO_TSERV_MEM'
'-Xms$ACCUMULO_TSERV_MEM\'\) ;;#" "$conf"/accumulo-env.sh
 fi
-$SED "s#ACCUMULO_DCACHE_SIZE#$ACCUMULO_DCACHE_SIZE#" "$conf"/accumulo-site.xml
-$SED "s#ACCUMULO_ICACHE_SIZE#$ACCUMULO_ICACHE_SIZE#" "$conf"/accumulo-site.xml
-$SED "s#ACCUMULO_IMAP_SIZE#$ACCUMULO_IMAP_SIZE#" "$conf"/accumulo-site.xml
-$SED "s#ACCUMULO_USE_NATIVE_MAP#$ACCUMULO_USE_NATIVE_MAP#" "$conf"/accumulo-site.xml
-$SED "s#UNO_HOST#$UNO_HOST#" "$conf"/accumulo-site.xml
+$SED "s#ACCUMULO_DCACHE_SIZE#$ACCUMULO_DCACHE_SIZE#" "$accumulo_conf"
+$SED "s#ACCUMULO_ICACHE_SIZE#$ACCUMULO_ICACHE_SIZE#" "$accumulo_conf"
+$SED "s#ACCUMULO_IMAP_SIZE#$ACCUMULO_IMAP_SIZE#" "$accumulo_conf"
+$SED "s#ACCUMULO_USE_NATIVE_MAP#$ACCUMULO_USE_NATIVE_MAP#" "$accumulo_conf"
+$SED "s#UNO_HOST#$UNO_HOST#" "$accumulo_conf"
 
 if [[ "$1" == "--with-metrics" ]]; then
   metrics_props=hadoop-metrics2-accumulo.properties
diff --git a/conf/accumulo/accumulo-2.0.properties b/conf/accumulo/accumulo-2.0.properties
new file mode 100755
index 0000000..49636dd
--- /dev/null
+++ b/conf/accumulo/accumulo-2.0.properties
@@ -0,0 +1,10 @@
+## Work around for ACCUMULO-2388. See Accumulo 1.6.0 release notes
+general.rpc.timeout=240s
+instance.secret=uno
+instance.volumes=hdfs://UNO_HOST:8020/accumulo
+instance.zookeeper.host=UNO_HOST:2181
+table.durability=flush
+tserver.memory.maps.native.enabled=ACCUMULO_USE_NATIVE_MAP
+tserver.readahead.concurrent.max=64
+tserver.server.threads.minimum=64
+tserver.walog.max.size=512M
diff --git a/conf/accumulo/accumulo-site-2.0.xml b/conf/accumulo/accumulo-site-2.0.xml
deleted file mode 100755
index a9d0874..0000000
--- a/conf/accumulo/accumulo-site-2.0.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
-
-<configuration>
-  <property> 
-    <!-- Work around for ACCUMULO-2388. See Accumulo 1.6.0 release notes --> 
-    <name>general.rpc.timeout</name> 
-    <value>240s</value> 
-  </property>
-  <property>
-    <name>instance.secret</name>
-    <value>uno</value>
-  </property>
-  <property>
-    <name>instance.volumes</name>
-    <value>hdfs://UNO_HOST:8020/accumulo</value>
-  </property>
-  <property>
-    <name>instance.zookeeper.host</name>
-    <value>UNO_HOST:2181</value>
-  </property>
-  <property>
-    <name>table.durability</name>
-    <value>flush</value>
-  </property>
-  <property>
-    <name>tserver.memory.maps.native.enabled</name>
-    <value>ACCUMULO_USE_NATIVE_MAP</value>
-  </property>
-  <property>
-    <name>tserver.readahead.concurrent.max</name>
-    <value>64</value>
-  </property>
-  <property>
-    <name>tserver.server.threads.minimum</name>
-    <value>64</value>
-  </property>
-  <property>
-    <name>tserver.walog.max.size</name>
-    <value>512M</value>
-  </property>
-</configuration>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message