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

Aihua Xu updated HIVE-12958:
----------------------------
    Release Note: 
A new property 'templeton.jetty.configuration' can be set pointing to an XML 
file in webhcat configuration file to enable the embedded Jetty configuration 
from such file.

   <property>
     <name>templeton.jetty.configuration</name>
     <value></value>
     <description>The embedded jetty configuration file.</description>
   </property>

We can follow 
https://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Configuring_a_File_Server_with_XML
 to make the xml configuration file to update the settings.

Here is an example:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" 
"http://www.eclipse.org/jetty/configure.dtd";>

<Configure id="FileServer" class="org.eclipse.jetty.server.Server">
    <Call name="addConnector">
      <Arg>
          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
            <Set name="port">9999</Set>
            <Set name="requestHeaderSize">65535</Set>
          </New>
      </Arg>
    </Call>
</Configure>

  was:
A new property 'templeton.jetty.configuration' can be set pointing to an XML 
file in webhcat configuration file to enable the embedded Jetty configuration 
from such file.

{noformat}
   <property>
     <name>templeton.jetty.configuration</name>
     <value></value>
     <description>The embedded jetty configuration file.</description>
  </property>
{noformat}

We can follow 
https://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Configuring_a_File_Server_with_XML
 to make the xml configuration file to update the settings.

Here is an example:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" 
"http://www.eclipse.org/jetty/configure.dtd";>

<Configure id="FileServer" class="org.eclipse.jetty.server.Server">
    <Call name="addConnector">
      <Arg>
          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
            <Set name="port">9999</Set>
            <Set name="requestHeaderSize">65535</Set>
          </New>
      </Arg>
    </Call>
</Configure>


> Make embedded Jetty server more configurable
> --------------------------------------------
>
>                 Key: HIVE-12958
>                 URL: https://issues.apache.org/jira/browse/HIVE-12958
>             Project: Hive
>          Issue Type: Improvement
>          Components: HCatalog
>    Affects Versions: 2.1.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>              Labels: TODOC2.1
>             Fix For: 2.1.0
>
>         Attachments: HIVE-12958.1.patch, HIVE-12958.2.patch, 
> HIVE-12958.3.patch
>
>
> Currently you can't configure embedded jetty within HCatalog. Propose to 
> support an xml configuration which Jetty already supports. A new Web-hcat 
> property will be added to specify the configure file location. If the file 
> doesn't exist, falls back to old behavior. If it exists, such configuration 
> will be loaded to configure embedded Jetty server. 
> Some default parameters for Jetty may not be sufficient for some cases such 
> as request/response buffer size. This improvement allows to make such change.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to