[ https://issues.apache.org/jira/browse/METRON-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16343760#comment-16343760 ]
ASF GitHub Bot commented on METRON-1432: ---------------------------------------- GitHub user nickwallen opened a pull request: https://github.com/apache/metron/pull/913 METRON-1432 JDK Install Fails on Ubuntu Development Environment The Ansible role used to install the JDK does not work correctly on Ubuntu. This fixes the problem and ensures that the JDK can be installed on either Ubuntu or CentOS. ## Testing 1. Launch the Ubuntu development environment. * Run the Metron Service Check * Ensure data is visible within the Alerts UI 1. Launch the CentOS development environment. * Run the Metron Service Check * Ensure data is visible within the Alerts UI ## Pull Request Checklist - [ ] Is there a JIRA ticket associated with this PR? If not one needs to be created at [Metron Jira](https://issues.apache.org/jira/browse/METRON/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel). - [ ] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character. - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)? - [ ] Have you included steps to reproduce the behavior or problem that is being changed or addressed? - [ ] Have you included steps or a guide to how the change may be verified and tested manually? - [ ] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via: - [ ] Have you written or updated unit tests and or integration tests to verify your changes? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent? You can merge this pull request into a Git repository by running: $ git pull https://github.com/nickwallen/metron METRON-1432 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/metron/pull/913.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #913 ---- commit bbc27bf6337067d51e2d6d7d03bcb19203e35f59 Author: Nick Allen <nick@...> Date: 2018-01-29T18:15:32Z METRON-1432 JDK Install Fails on Ubuntu Development Environment ---- > JDK Install Fails on Ubuntu Development Environment > ---------------------------------------------------- > > Key: METRON-1432 > URL: https://issues.apache.org/jira/browse/METRON-1432 > Project: Metron > Issue Type: Bug > Reporter: Nick Allen > Assignee: Nick Allen > Priority: Major > > When deploying Metron in the Ubuntu-based development environment, the JDK > fails to install. The following exception is seen. > {code:java} > TASK [java_jdk : Check for java at "/usr/jdk64/jdk1.8.0_77"] > ******************* > ok: [node1] > TASK [java_jdk : Alternatives link for java] > *********************************** > skipping: [node1] => (item={u'path': u'/usr/jdk64/jdk1.8.0_77/bin/java', > u'link': u'/usr/bin/java', u'name': u'java'}) > skipping: [node1] => (item={u'path': u'/usr/jdk64/jdk1.8.0_77/bin/jar', > u'link': u'/usr/bin/jar', u'name': u'jar'}) > TASK [java_jdk : Install openjdk] > ********************************************** > failed: [node1] (item=[u'java-1.8.0-openjdk', u'java-1.8.0-openjdk-devel']) > => {"failed": true, "item": ["java-1.8.0-openjdk", > "java-1.8.0-openjdk-devel"], "module_stderr": "Shared connection to node1 > closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File > \"/tmp/ansible_4ssOWN/ansible_module_yum.py\", line 25, in <module>\r\n > import yum\r\nImportError: No module named yum\r\n", "msg": "MODULE FAILURE"} > to retry, use: --limit > @/Users/nallen/tmp/metron-pr907/metron-deployment/development/ubuntu14/ansible/playbook.retry > PLAY RECAP > ********************************************************************* > node1 : ok=42 changed=26 unreachable=0 failed=1 > Ansible failed to complete successfully. Any error output should be > visible above. Please fix these errors and try again.{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)