Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-23355

Add Hive Service wizard shows incorrect path for mysql driver in ambari-server setup command

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      While installing Hive on Ambari it shows the message for installing driver with incorrect Driver JAR name in the setup command.

      To use MySQL with Hive, you must download the https://dev.mysql.com/downloads/connector/j/ from MySQL. Once downloaded to the Ambari Server host, run: 
      ambari-server setup --jdbc-db=mysql --jdbc-driver=/path/to/mysql/com.mysql.jdbc.Driver
      

      Notice the path is "/path/to/mysql/com.mysql.jdbc.Driver", which is supposed to be "/path/to/mysql/mysql-connector-java.jar"

      So if the users will follow the instruction as it is, then it will cause the following error:

      # ambari-server setup --jdbc-db=mysql --jdbc-driver=/path/to/mysql/com.mysql.jdbc.Driver
      Using python  /usr/bin/python
      Setup ambari-server
      ERROR: Exiting with exit code 1. 
      REASON: File /path/to/mysql/com.mysql.jdbc.Driver does not exist!
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jaysensharma Jay SenSharma
            jaysensharma Jay SenSharma

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m

                Slack

                  Issue deployment