You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Sean Mackrory (JIRA)" <ji...@apache.org> on 2013/03/19 04:15:15 UTC

[jira] [Updated] (BIGTOP-811) Auto-detect MySQL-Java connector

     [ https://issues.apache.org/jira/browse/BIGTOP-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Mackrory updated BIGTOP-811:
---------------------------------

    Attachment: 0001-BIGTOP-811-Auto-detect-common-add-on-JARs-like-SQL-c.patch

Attached one possibility. I'm liking the idea of creating links less and less, because if Bigtop guesses wrong, then the user has to clean up. This method is very similar to JAVA_HOME detection. The user can manually set it however it wants and override detection. If it's not set manually, it will just slurp everything it can into one classpath. The only catch is getting this into the classpath for the daemon (not very easy, especially when using bigtop-tomcat). But for simplicity's sake, let's say the environment's classpath just bled through to the child environment, you could just do this:


{noformat}
. /usr/lib/bigtop-utils/bigtop-detect-classpath
export CLASSPATH=$BIGTOP_CLASSPATH
{noformat}

If we do end up having to make links, this at least gives us a good starting point for finding the targets of said links.
                
> Auto-detect MySQL-Java connector
> --------------------------------
>
>                 Key: BIGTOP-811
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-811
>             Project: Bigtop
>          Issue Type: New Feature
>            Reporter: Sean Mackrory
>            Assignee: Sean Mackrory
>         Attachments: 0001-BIGTOP-811-Auto-detect-common-add-on-JARs-like-SQL-c.patch
>
>
> For components that require the installation of additional artifacts that Bigtop cannot distribute (due to license incompatability or other issues), Bigtop should provide both a standardized location to which the artifacts can be installed, and the ability to auto-detect the locations to which they may already be installed.
> Specifically, Sqoop and Hive (and possibly other components) require the installation of the MySQL-Java connector when using MySQL for imports, exports, or metadata storage. This needs to be done by copying the JAR to a directory that is already in the classpath for those components (such as /usr/lib/sqoop/lib and /usr/lib/hive/lib). Some repositories distribute packages that install the jar to /usr/share/java.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira