-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-198 HDFS File Interpreter #752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
865e6ab
Add File Interpreter, HDFS Interpreter and Tests
7d61e5f
This is the first reviewed version of File Interpreter that adds basi…
1239fe6
Merge remote-tracking branch 'upstream/master'
70507a8
Add Documentation and a missing dependency for HDFS File Browser
79f0d90
Merge branch 'master' of https://github.com/raj-bains/incubator-zeppelin
runyontr 27e0438
Modified string creation to use StringBuilder
runyontr 797fd29
Added org.glassfish.jersey.core to pom.xml file for hdfs intepretor
runyontr 32ed7cb
ZEPPELIN-198 Added -h flag for human readable byte sizes. Updated st…
runyontr b505391
ZEPPELIN-198 Added completion functionality to HDFSInterpreter
runyontr 227b815
ZEPPELIN-198 Updated interpreter documentation.
runyontr d24f4c0
ZEPPELIN-198 Added error logging when returning error in interpet
runyontr aec0512
ZEPPELIN-198 Fixed compile error for error logging.
runyontr 71d53d3
ZEPPELIN-198 Changed pom name to Zeppelin File System Interpreters to…
runyontr 29540df
ZEPPELIN-198 removed zeppelin-server/derby.log
runyontr 933c890
MAINT Updated .gitignore file to remove zeppelin-server/derby.log
runyontr 56a5174
ZEPPELIN-198 fixed logging to match standards
runyontr 1c7a5c2
ZEPPELIN-198 removed errant text in documentation.
runyontr 67bbc5b
ZEPPELIN-198 Added navigation to hdfs interpreter
runyontr 5938b0e
ZEPPELIN-198 Updated documentation to be consistent with naming betwe…
runyontr 9f66514
ZEPPELIN-198 Removed extra copy of configuration table and fixed form…
runyontr 8d0ee3d
Merge https://github.com/apache/incubator-zeppelin
runyontr c34a913
ZEPPELIN-198 Updated licenses file to include org.glassfish.jersey.core
runyontr 9832622
ZEPPELIN-198 Changed group for hdfs interpreter
runyontr 5e9e131
ZEPPELIN-198 Updated ZeppelinConfiguration to hold HDFS interpreter
runyontr af16ce0
ZEPPELIN-198 removed GPL2 reference from license file
runyontr f7bfef8
ZEPPELIN-198 added transitive dependency lincense information
runyontr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| layout: page | ||
| title: "HDFS File System Interpreter" | ||
| description: "" | ||
| group: manual | ||
| --- | ||
| {% include JB/setup %} | ||
|
|
||
| ## HDFS File System Interpreter for Apache Zeppelin | ||
|
|
||
| [Hadoop File System](http://hadoop.apache.org/) is a distributed, fault tolerant file system part of the hadoop project and is often used as storage for distributed processing engines like [Hadoop MapReduce](http://hadoop.apache.org/) and [Apache Spark](http://spark.apache.org/) or underlying file systems like [Alluxio](http://www.alluxio.org/). | ||
|
|
||
| ## Configuration | ||
| <table class="table-configuration"> | ||
| <tr> | ||
| <th>Property</th> | ||
| <th>Default</th> | ||
| <th>Description</th> | ||
| </tr> | ||
| <tr> | ||
| <td>hdfs.url</td> | ||
| <td>http://localhost:50070/webhdfs/v1/</td> | ||
| <td>The URL for WebHDFS</td> | ||
| </tr> | ||
| <tr> | ||
| <td>hdfs.user</td> | ||
| <td>hdfs</td> | ||
| <td>The WebHDFS user</td> | ||
| </tr> | ||
| <tr> | ||
| <td>hdfs.maxlength</td> | ||
| <td>1000</td> | ||
| <td>Maximum number of lines of results fetched</td> | ||
| </tr> | ||
| </table> | ||
|
|
||
| <br/> | ||
| This interpreter connects to HDFS using the HTTP WebHDFS interface. | ||
| It supports the basic shell file commands applied to HDFS, it currently only supports browsing. | ||
|
|
||
| * You can use <i>ls [PATH]</i> and <i>ls -l [PATH]</i> to list a directory. If the path is missing, then the current directory is listed. <i>ls </i> supports a <i>-h</i> flag for human readable file sizes. | ||
| * You can use <i>cd [PATH]</i> to change your current directory by giving a relative or an absolute path. | ||
| * You can invoke <i>pwd</i> to see your current directory. | ||
|
|
||
| > **Tip :** Use ( Ctrl + . ) for autocompletion. | ||
|
|
||
| ### Create Interpreter | ||
|
|
||
| In a notebook, to enable the **HDFS** interpreter, click the **Gear** icon and select **HDFS**. | ||
|
|
||
|
|
||
| #### WebHDFS REST API | ||
| You can confirm that you're able to access the WebHDFS API by running a curl command against the WebHDFS end point provided to the interpreter. | ||
|
|
||
| Here is an example: | ||
| $> curl "http://localhost:50070/webhdfs/v1/?op=LISTSTATUS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| ~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
| ~ contributor license agreements. See the NOTICE file distributed with | ||
| ~ this work for additional information regarding copyright ownership. | ||
| ~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| ~ (the "License"); you may not use this file except in compliance with | ||
| ~ the License. You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, software | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| --> | ||
|
|
||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <artifactId>zeppelin</artifactId> | ||
| <groupId>org.apache.zeppelin</groupId> | ||
| <version>0.6.0-incubating-SNAPSHOT</version> | ||
| </parent> | ||
|
|
||
| <groupId>org.apache.zeppelin</groupId> | ||
| <artifactId>zeppelin-file</artifactId> | ||
| <packaging>jar</packaging> | ||
| <version>0.6.0-incubating-SNAPSHOT</version> | ||
| <name>Zeppelin File System Interpreters</name> | ||
| <url>http://www.apache.org</url> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.zeppelin</groupId> | ||
| <artifactId>zeppelin-interpreter</artifactId> | ||
| <version>${project.version}</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>javax.ws.rs</groupId> | ||
| <artifactId>javax.ws.rs-api</artifactId> | ||
| <version>2.0</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-log4j12</artifactId> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.glassfish.jersey.core</groupId> | ||
| <artifactId>jersey-common</artifactId> | ||
| <version>2.22.2</version> | ||
| </dependency> | ||
|
|
||
|
|
||
| <dependency> | ||
| <groupId>junit</groupId> | ||
| <artifactId>junit</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-deploy-plugin</artifactId> | ||
| <version>2.7</version> | ||
| <configuration> | ||
| <skip>true</skip> | ||
| </configuration> | ||
| </plugin> | ||
|
|
||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-surefire-plugin</artifactId> | ||
| <version>2.18.1</version> | ||
| </plugin> | ||
|
|
||
| <plugin> | ||
| <artifactId>maven-enforcer-plugin</artifactId> | ||
| <version>1.3.1</version> | ||
| <executions> | ||
| <execution> | ||
| <id>enforce</id> | ||
| <phase>none</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
|
|
||
| <plugin> | ||
| <artifactId>maven-dependency-plugin</artifactId> | ||
| <version>2.8</version> | ||
| <executions> | ||
| <execution> | ||
| <id>copy-dependencies</id> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>copy-dependencies</goal> | ||
| </goals> | ||
| <configuration> | ||
| <outputDirectory>${project.build.directory}/../../interpreter/file</outputDirectory> | ||
| <overWriteReleases>false</overWriteReleases> | ||
| <overWriteSnapshots>false</overWriteSnapshots> | ||
| <overWriteIfNewer>true</overWriteIfNewer> | ||
| <includeScope>runtime</includeScope> | ||
| </configuration> | ||
| </execution> | ||
| <execution> | ||
| <id>copy-artifact</id> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>copy</goal> | ||
| </goals> | ||
| <configuration> | ||
| <outputDirectory>${project.build.directory}/../../interpreter/file</outputDirectory> | ||
| <overWriteReleases>false</overWriteReleases> | ||
| <overWriteSnapshots>false</overWriteSnapshots> | ||
| <overWriteIfNewer>true</overWriteIfNewer> | ||
| <!--<includeScope>runtime</includeScope>--> | ||
| <artifactItems> | ||
| <artifactItem> | ||
| <groupId>${project.groupId}</groupId> | ||
| <artifactId>${project.artifactId}</artifactId> | ||
| <version>${project.version}</version> | ||
| <type>${project.packaging}</type> | ||
| </artifactItem> | ||
| </artifactItems> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
|
|
||
| </project> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License of new binary dependency (including transitive dependencies) need to be address in zeppelin-distribution/src/bin_license/LICENSE and/or zeppelin-distribution/src/bin_license/NOTICE.
Could you take care of them? here is dependency tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed up a new commit last night. Could you please check to make sure the format of the license change is correct?