Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2F249200BE0 for ; Fri, 2 Dec 2016 17:33:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2DFD1160B08; Fri, 2 Dec 2016 16:33:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7E901160B24 for ; Fri, 2 Dec 2016 17:33:00 +0100 (CET) Received: (qmail 89314 invoked by uid 500); 2 Dec 2016 16:32:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 89226 invoked by uid 99); 2 Dec 2016 16:32:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 16:32:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 79E842C1F54 for ; Fri, 2 Dec 2016 16:32:59 +0000 (UTC) Date: Fri, 2 Dec 2016 16:32:59 +0000 (UTC) From: "John Zhuge (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13597) Switch KMS from Tomcat to Jetty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Dec 2016 16:33:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15715569#comment-15715569 ] John Zhuge commented on HADOOP-13597: ------------------------------------- [~aw] Found mistake in {{hadoop-kms.sh}} for Patch 002 where everything is in {{hadoop_subcommand_kms}}. Should be: {code} if [[ "${HADOOP_SHELL_EXECNAME}" = hadoop ]]; then hadoop_add_profile kms hadoop_add_subcommand "kms" "run KMS, the Key Management Server" fi function _kms_hadoop_init { # init variables } function hadoop_subcommand_kms { # Called by bin/hadoop to provide subcommand case statement if any HADOOP_SUBCMD_SUPPORTDAEMONIZATION=true HADOOP_CLASSNAME=org.apache.hadoop.crypto.key.kms.server.KMSHttpServer } function _kms_hadoop_finalize { # Called in finalize phase, all env vars are settled hadoop_add_param HADOOP_OPTS "-Dkms.config.dir=" \ "-Dkms.config.dir=${HADOOP_CONF_DIR}" hadoop_add_param HADOOP_OPTS "-Dkms.log.dir=" \ "-Dkms.log.dir=${HADOOP_LOG_DIR}" } {code} The 3 functions are called in this order: # _kms_hadoop_init # hadoop_subcommand_kms # _kmd_hadoop_finalize > Switch KMS from Tomcat to Jetty > ------------------------------- > > Key: HADOOP-13597 > URL: https://issues.apache.org/jira/browse/HADOOP-13597 > Project: Hadoop Common > Issue Type: New Feature > Components: kms > Affects Versions: 2.6.0 > Reporter: John Zhuge > Assignee: John Zhuge > Attachments: HADOOP-13597.001.patch, HADOOP-13597.002.patch > > > The Tomcat 6 we are using will reach EOL at the end of 2017. While there are other good options, I would propose switching to {{Jetty 9}} for the following reasons: > * Easier migration. Both Tomcat and Jetty are based on {{Servlet Containers}}, so we don't have change client code that much. It would require more work to switch to {{JAX-RS}}. > * Well established. > * Good performance and scalability. > Other alternatives: > * Jersey + Grizzly > * Tomcat 8 > Your opinions will be greatly appreciated. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org