You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluo.apache.org by cj...@apache.org on 2019/11/08 12:22:38 UTC

[fluo-uno] branch master updated: Update docs for Java 11 (#234)

This is an automated email from the ASF dual-hosted git repository.

cjmctague pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/fluo-uno.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a57ea2  Update docs for Java 11 (#234)
1a57ea2 is described below

commit 1a57ea22c29342ec8e16fffd12c6c5ace0c7833e
Author: Jeffrey Manno <je...@gmail.com>
AuthorDate: Fri Nov 8 07:22:31 2019 -0500

    Update docs for Java 11 (#234)
    
    * Updated these docs for Java 11
    * Add docs for 18.04
---
 README.md          |  1 +
 docs/centos7.md    |  4 ++--
 docs/ubuntu1804.md | 31 +++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 741e6ad..d424de1 100644
--- a/README.md
+++ b/README.md
@@ -25,6 +25,7 @@ The following instructions can help you setup these requirements in your
 environment :
 
  * [Ubuntu 16.04](/docs/ubuntu1604.md)
+ * [Ubuntu 18.04](/docs/ubuntu1804.md)
  * [CentOS 7](/docs/centos7.md)
 
 ## Quickstart
diff --git a/docs/centos7.md b/docs/centos7.md
index 8f18896..306a3bc 100644
--- a/docs/centos7.md
+++ b/docs/centos7.md
@@ -3,7 +3,7 @@ CentOS 7 prep
 
 ```bash
 #install stuff
-sudo yum install java-1.8.0-openjdk maven git openssh-server wget perl-Digest-SHA
+sudo yum install java-11-openjdk maven git openssh-server wget perl-Digest-SHA
 sudo yum group install "Development Tools"
 
 #setup passwordless ssh 
@@ -13,7 +13,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
 chmod 0600 ~/.ssh/authorized_keys
 
 #add java home to your env by appending this line to ~/.bashrc
-export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
+export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
 
 #optional: set OS limits - requires restart
 cat <<EOF | sudo tee -a /etc/security/limits.conf > /dev/null 
diff --git a/docs/ubuntu1804.md b/docs/ubuntu1804.md
new file mode 100644
index 0000000..425cd4a
--- /dev/null
+++ b/docs/ubuntu1804.md
@@ -0,0 +1,31 @@
+Ubuntu 18.04 prep
+-----------------
+
+The following commands are one possible way to quickly prepare an instance of
+Ubuntu 18.04 for Uno.
+
+```bash
+#install stuff
+sudo apt install openjdk-11-jdk maven git openssh-server wget libxml2-utils make g++
+
+#setup passwordless ssh
+ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
+ssh-keyscan -H localhost >> ~/.ssh/known_hosts
+cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
+
+#add java home before interactive section, will take effect on shell restart
+#this may not work properly in your environment, looks for phrase in stock ubuntu .bashrc
+sed -i '/# for examples/a export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' ~/.bashrc
+
+#set java home in current shell
+export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
+
+# Optional: set OS limits.  Could do this with an editor. Could replace * with user running Uno.  
+cat <<EOF | sudo tee -a /etc/security/limits.conf > /dev/null 
+* hard nproc 65536
+* soft nproc 65536
+* hard nofile 65536
+* soft nofile 65536
+EOF
+
+```