Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5426

Queries fail with "RESOURCE ERROR: Failed to create schema tree." when Impersonation is enabled

    XMLWordPrintableJSON

    Details

      Description

      When Drillbit impersonation is enabled and clients connect without specifying the username (and password), queries fails to execute:

      # $DRILL_HOME/bin/sqlline -u "jdbc:drill:zk=localhost:5181" 
      sqlline> select * from sys.drillbits;
      User Error Occurred
      org.apache.drill.common.exceptions.UserException: RESOURCE ERROR: Failed to create schema tree.
      

      The error disappears when username is specified:

      # $DRILL_HOME/bin/sqlline -u "jdbc:drill:zk=localhost:5181" -n root -p root
      sqlline> select * from sys.drillbits;
      SUCCESS
      

      Log attached.

        Attachments

        1. drillbit.log.txt
          4 kB
          Abhishek Girish

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              agirish Abhishek Girish
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: