Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82B0619B5E for ; Fri, 22 Apr 2016 15:30:31 +0000 (UTC) Received: (qmail 45968 invoked by uid 500); 22 Apr 2016 15:30:26 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 45819 invoked by uid 500); 22 Apr 2016 15:30:26 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 45808 invoked by uid 99); 22 Apr 2016 15:30:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2016 15:30:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6D28C1A0754 for ; Fri, 22 Apr 2016 15:30:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.798 X-Spam-Level: ** X-Spam-Status: No, score=2.798 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=1.499, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kt18z772yunT for ; Fri, 22 Apr 2016 15:30:23 +0000 (UTC) Received: from relayvx11b.securemail.intermedia.net (relayvx11b.securemail.intermedia.net [64.78.52.184]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5BE595F3F3 for ; Fri, 22 Apr 2016 15:30:22 +0000 (UTC) Received: from securemail.intermedia.net (localhost [127.0.0.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-1.localdomain (Postfix) with ESMTPS id 9C27D53E07; Fri, 22 Apr 2016 08:30:20 -0700 (PDT) Subject: Re: HDFS Encryption using Java MIME-Version: 1.0 x-echoworx-msg-id: 163a453b-0fca-4e1e-a26f-a7b3a89ca1c3 x-echoworx-emg-received: Fri, 22 Apr 2016 08:30:20.584 -0700 x-echoworx-message-code-hashed: 5ffdc0a1e3391cc79c27422e716453eee4662fd6919a5b874c74cf6b457e3d17 x-echoworx-action: delivered Received: from 10.254.155.14 ([10.254.155.14]) by emg-ca-1-1 (JAMES SMTP Server 2.3.2) with SMTP ID 207; Fri, 22 Apr 2016 08:30:20 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (unknown [10.224.117.102]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-1.localdomain (Postfix) with ESMTPS id 5F87F53EFE; Fri, 22 Apr 2016 08:30:20 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) by MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Fri, 22 Apr 2016 08:30:19 -0700 Received: from MBX080-W4-CO-2.exch080.serverpod.net ([10.224.117.102]) by mbx080-w4-co-2.exch080.serverpod.net ([10.224.117.102]) with mapi id 15.00.1130.005; Fri, 22 Apr 2016 08:30:19 -0700 From: Larry McCay To: Shashi Vishwakarma CC: "user@hadoop.apache.org" Thread-Topic: HDFS Encryption using Java Thread-Index: AQHRnHvFa6B2z6TAWkOhZlwp0P+WpJ+WlDKA Date: Fri, 22 Apr 2016 15:30:19 +0000 Message-ID: <05465C92-A5FC-4AEF-AA75-C428124A4F71@hortonworks.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [108.24.174.213] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_05465C92A5FC4AEFAA75C428124A4F71hortonworkscom_" --_000_05465C92A5FC4AEFAA75C428124A4F71hortonworkscom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Shashi - For the Key Provider API, I would personally use the code in KeyShell.java = [1] and the tests in TestKeyProviderFactory.java [2] as examples for creati= ng the key. Unfortunately, I don=92t have pointers for the createZone step for you but = hope that is helpful. =97larry [1]. https://git-wip-us.apache.org/repos/asf?p=3Dhadoop.git;a=3Dblob;f=3Dha= doop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/ke= y/KeyShell.java;h=3Dc69dc82a6032f7cbd989cd5f89dfa7719297f9b7;hb=3DHEAD [2]. https://git-wip-us.apache.org/repos/asf?p=3Dhadoop.git;a=3Dblob;f=3Dha= doop-common-project/hadoop-common/src/test/java/org/apache/hadoop/crypto/ke= y/TestKeyProviderFactory.java;h=3Def09d94739643a3a7ee642921d394b0d8c45acee;= hb=3DHEAD On Apr 22, 2016, at 5:45 AM, Shashi Vishwakarma > wrote: Hi I want to invoke below command using java . hadoop key create myKey hdfs crypto -createZone -keyName myKey -path /zone Can someone point to java api documentation for this or any example to impl= ement this in java? Thanks in advance. Shashi --_000_05465C92A5FC4AEFAA75C428124A4F71hortonworkscom_ Content-Type: text/html; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable Hi Shashi -

For the Key Provider API, I would personally use the code in KeyShell.= java [1] and the tests in TestKeyProviderFactory.java [2] as examples for c= reating the key.

Unfortunately, I don=92t have pointers for the createZone step for you= but hope that is helpful.

=97larry



On Apr 22, 2016, at 5:45 AM, Shashi Vishwakarma <shashi.vish123@gmail.com> wrote:

Hi

I want to invoke be= low command using java .

hadoop key cre=
ate myKey
hdfs crypto -createZone -keyName myKey -path /=
zone

Can someone point to java api documentation for this or any example to impl= ement this in java?

Thanks in advance.

Shashi



--_000_05465C92A5FC4AEFAA75C428124A4F71hortonworkscom_--