Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D94FE1883E for ; Fri, 23 Oct 2015 21:49:28 +0000 (UTC) Received: (qmail 67068 invoked by uid 500); 23 Oct 2015 21:49:28 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 66642 invoked by uid 500); 23 Oct 2015 21:49:28 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 66277 invoked by uid 99); 23 Oct 2015 21:49:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2015 21:49:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 112282C1F72 for ; Fri, 23 Oct 2015 21:49:28 +0000 (UTC) Date: Fri, 23 Oct 2015 21:49:28 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Moved] (HDFS-9301) HDFS clients can't construct HdfsConfiguration instances MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Haohui Mai moved HADOOP-12506 to HDFS-9301: ------------------------------------------- Key: HDFS-9301 (was: HADOOP-12506) Project: Hadoop HDFS (was: Hadoop Common) > HDFS clients can't construct HdfsConfiguration instances > -------------------------------------------------------- > > Key: HDFS-9301 > URL: https://issues.apache.org/jira/browse/HDFS-9301 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Steve Loughran > Assignee: Mingliang Liu > Attachments: HDFS-9241.000.patch, HDFS-9241.001.patch, HDFS-9241.002.patch, HDFS-9241.003.patch, HDFS-9241.004.patch, HDFS-9241.005.patch > > > the changes for the hdfs client classpath make instantiating {{HdfsConfiguration}} from the client impossible; it only lives server side. This breaks any app which creates one. > I know people will look at the {{@Private}} tag and say "don't do that then", but it's worth considering precisely why I, at least, do this: it's the only way to guarantee that the hdfs-default and hdfs-site resources get on the classpath, including all the security settings. It's precisely the use case which {{HdfsConfigurationLoader.init();}} offers internally to the hdfs code. > What am I meant to do now? -- This message was sent by Atlassian JIRA (v6.3.4#6332)