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 6BDB718742 for ; Wed, 28 Oct 2015 15:04:29 +0000 (UTC) Received: (qmail 92063 invoked by uid 500); 28 Oct 2015 15:04:27 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 91936 invoked by uid 500); 28 Oct 2015 15:04:27 -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 91907 invoked by uid 99); 28 Oct 2015 15:04:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 15:04:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B2C172C1F57 for ; Wed, 28 Oct 2015 15:04:27 +0000 (UTC) Date: Wed, 28 Oct 2015 15:04:27 +0000 (UTC) From: "James Clampffer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-8766) Implement a libhdfs(3) compatible API 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-8766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Clampffer updated HDFS-8766: ---------------------------------- Attachment: HDFS-8766.HDFS-8707.011.patch Should have all the fixes for your last comment Haohui: -Updated the style for block comments. -Moved the hdfs_internal and hdfsFile_internal implementations into the same file as the C API functions because they shouldn't be visible elsewhere anyway. This also got the "include namespace hdfs" out of the header. -All promises are made using make_shared, the lambda captures the shared_ptr by value to bump the reference count to prevent the race condition. > Implement a libhdfs(3) compatible API > ------------------------------------- > > Key: HDFS-8766 > URL: https://issues.apache.org/jira/browse/HDFS-8766 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: James Clampffer > Assignee: James Clampffer > Attachments: HDFS-8766.HDFS-8707.000.patch, HDFS-8766.HDFS-8707.001.patch, HDFS-8766.HDFS-8707.002.patch, HDFS-8766.HDFS-8707.003.patch, HDFS-8766.HDFS-8707.004.patch, HDFS-8766.HDFS-8707.005.patch, HDFS-8766.HDFS-8707.006.patch, HDFS-8766.HDFS-8707.007.patch, HDFS-8766.HDFS-8707.008.patch, HDFS-8766.HDFS-8707.009.patch, HDFS-8766.HDFS-8707.010.patch, HDFS-8766.HDFS-8707.011.patch > > > Add a synchronous API that is compatible with the hdfs.h header used in libhdfs and libhdfs3. This will make it possible for projects using libhdfs/libhdfs3 to relink against libhdfspp with minimal changes. > This also provides a pure C interface that can be linked against projects that aren't built in C++11 mode for various reasons but use the same compiler. It also allows many other programming languages to access libhdfspp through builtin FFI interfaces. > The libhdfs API is very similar to the posix file API which makes it easier for programs built using posix filesystem calls to be modified to access HDFS. -- This message was sent by Atlassian JIRA (v6.3.4#6332)