Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3683

Hive-plugin is used in Ranger Admin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.2.0
    • None
    • admin
    • None

    Description

      Hive-plugin was integrated in Range-Admin 2.2.0, but an error occurred while testing the connection

       

      2022-03-24 13:54:54,556 [timed-executor-pool-0] INFO  org.apache.ranger.plugin.client.BaseClient (BaseClient.java:111) - Password decryption failed; trying connection with received password string
      2022-03-24 13:54:54,556 [timed-executor-pool-0] INFO  org.apache.ranger.plugin.client.BaseClient (BaseClient.java:126) - Init Login: security not enabled, using username
      2022-03-24 13:54:54,556 [timed-executor-pool-0] INFO  apache.ranger.services.hive.client.HiveClient (HiveClient.java:93) - Since Password is NOT provided, Trying to use UnSecure client with username and password
      2022-03-24 13:54:54,556 [timed-executor-pool-0] ERROR org.apache.ranger.plugin.util.PasswordUtils (PasswordUtils.java:165) - Unable to decrypt password due to error
      javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
          at com.sun.crypto.provider.CipherCore.prepareInputBuffer(CipherCore.java:1005)
          at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:848)
          at com.sun.crypto.provider.PBES1Core.doFinal(PBES1Core.java:432)
          at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(PBEWithMD5AndDESCipher.java:316)
          at javax.crypto.Cipher.doFinal(Cipher.java:2164)
          at org.apache.ranger.plugin.util.PasswordUtils.decrypt(PasswordUtils.java:150)
          at org.apache.ranger.plugin.util.PasswordUtils.decryptPassword(PasswordUtils.java:138)
          at org.apache.ranger.services.hive.client.HiveClient.initConnection(HiveClient.java:716)
          at org.apache.ranger.services.hive.client.HiveClient.access$100(HiveClient.java:56)
          at org.apache.ranger.services.hive.client.HiveClient$2.run(HiveClient.java:98)
          at org.apache.ranger.services.hive.client.HiveClient$2.run(HiveClient.java:96)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAs(Subject.java:422)
          at org.apache.ranger.services.hive.client.HiveClient.initHive(HiveClient.java:96)
          at org.apache.ranger.services.hive.client.HiveClient.<init>(HiveClient.java:77)
          at org.apache.ranger.services.hive.client.HiveClient.connectionTest(HiveClient.java:827)
          at org.apache.ranger.services.hive.client.HiveResourceMgr.connectionTest(HiveResourceMgr.java:48)
          at org.apache.ranger.services.hive.RangerServiceHive.validateConfig(RangerServiceHive.java:82)
          at org.apache.ranger.biz.ServiceMgr$ValidateCallable.actualCall(ServiceMgr.java:660)
          at org.apache.ranger.biz.ServiceMgr$ValidateCallable.actualCall(ServiceMgr.java:647)
          at org.apache.ranger.biz.ServiceMgr$TimedCallable.call(ServiceMgr.java:608)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
      2022-03-24 13:54:54,558 [timed-executor-pool-0] INFO  apache.ranger.services.hive.client.HiveClient (HiveClient.java:718) - Password decryption failed; trying Hive connection with received password string
       

       

      I don't know how to solve it

       

      Attachments

        1. test.png
          104 kB
          wangjiucheng

        Activity

          People

            Unassigned Unassigned
            wangjiucheng wangjiucheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: