Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12247

HiveServer2 in HTTP mode should print a relevant error message when its threadpool is configured such that it cannot create appropriate acceptor threads while starting up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0, 1.2.0
    • None
    • HiveServer2
    • None

    Description

      When run in HTTP mode, HS2 uses embedded jetty. The number of acceptor threads created are based on this formula (http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty.aggregate/jetty-plus/7.6.0.v20120127/org/eclipse/jetty/server/nio/SelectChannelConnector.java#80):

      (Math.max(1,(Runtime.getRuntime().availableProcessors()+3)/4));
      

      In cases where hive.server2.thrift.max.worker.threads is set to a lower value than the above, we should print out a relevant error message.

      Attachments

        Activity

          People

            Unassigned Unassigned
            deepesh Deepesh Khandelwal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: