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 36F05200B4A for ; Tue, 5 Jul 2016 23:14:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35898160A2C; Tue, 5 Jul 2016 21:14:13 +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 82F04160A70 for ; Tue, 5 Jul 2016 23:14:12 +0200 (CEST) Received: (qmail 69582 invoked by uid 500); 5 Jul 2016 21:14:11 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 69535 invoked by uid 99); 5 Jul 2016 21:14:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 21:14:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 204F42C02AA for ; Tue, 5 Jul 2016 21:14:11 +0000 (UTC) Date: Tue, 5 Jul 2016 21:14:11 +0000 (UTC) From: "Anatoli Shein (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10596) libhdfs++: Implement hdfsFileIsEncrypted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 21:14:13 -0000 [ https://issues.apache.org/jira/browse/HDFS-10596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363263#comment-15363263 ] Anatoli Shein commented on HDFS-10596: -------------------------------------- In order to test this function we need an encryption zone in HDFS, and to set it up we need a key provider service running (kms). To get kms server to run I did the following modifications to the config files: /etc/hadoop/kms-site.xml: hadoop.kms.key.provider.uri jceks://file@/${user.home}/kms.keystore URI of the backing KeyProvider for the KMS. hadoop.security.keystore.java-keystore-provider.password-file kms.keystore.password If using the JavaKeyStoreProvider, the password for the keystore file. /etc/hadoop/core-site.xml hadoop.security.key.provider.path kms://http@localhost:16000/kms Path to KeyProvider for the KMS. Then I needed to create a password file like this: touch .../hadoop-2.6.0/share/hadoop/kms/tomcat/webapps/kms/WEB-INF/classes/kms.keystore.password After that I was able to start/stop KMS service from .../hadoop-2.6.0/sbin directory like this: ./kms.sh start ./kms.sh stop Then I created a new encryption key: hadoop key create myKey And was able to list it: hadoop key list -provider jceks://file@/home/anatoli/kms.keystore -metadata Created a new directory: hadoop fs -mkdir hdfs://localhost.localdomain:9433/zone However I cannot create zone. This is the command I am trying: hdfs crypto -createZone -keyName myKey -path hdfs://localhost.localdomain:9433/zone And I get this error: 16/07/05 17:12:27 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable RemoteException: Can't create an encryption zone for /zone since no key provider is available. Not sure how to go around this. Does anyone have any ideas? > libhdfs++: Implement hdfsFileIsEncrypted > ---------------------------------------- > > Key: HDFS-10596 > URL: https://issues.apache.org/jira/browse/HDFS-10596 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Anatoli Shein > Attachments: HDFS-10596.HDFS-8707.000.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org