source: proiecte/HadoopJUnit/hadoop-0.20.1/src/contrib/thriftfs/README @ 176

Last change on this file since 176 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1                        Thrift API for HDFS
2                        ==================
3
4Introduction:
5============
6
7The Hadoop Distributed File System is written in Java. An application
8that wants to store/fetch data to/from HDFS can use the Java API
9This means that applications that are not written in Java cannot
10access HDFS in an elegant manner.
11
12Thrift is a software framework for scalable cross-language services
13development. It combines a powerful software stack with a code generation
14engine to build services that work efficiently and seamlessly
15between C++, Java, Python, PHP, and Ruby.
16
17This project exposes HDFS APIs using the Thrift software stack. This
18allows applciations written in a myriad of languages to access
19HDFS elegantly.
20
21
22The Application Programming Interface (API)
23===========================================
24The HDFS API that is exposed through Thrift can be found in if/hadoopfs.thrift.
25
26Compilation
27===========
28The compilation process creates a server org.apache.hadoop.thriftfs.HadooopThriftServer
29that implements the Thrift interface defined in if/hadoopfs.thrift.
30
31Th thrift compiler is used to generate API stubs in python, php, ruby,
32cocoa, etc. The generated code is checked into the directories gen-*.
33The generated java API is checked into lib/hadoopthriftapi.jar.
34
35There is a sample python script hdfs.py in the scripts directory. This python
36script, when invoked, creates a HadoopThriftServer in the background, and then
37communicates wth HDFS using the API. This script is for demonstration purposes
38only.
39
Note: See TracBrowser for help on using the repository browser.