Skip to content

Commit

Permalink
added example config files
Browse files Browse the repository at this point in the history
  • Loading branch information
amangarg96 committed Apr 3, 2019
1 parent 5d83053 commit 174339a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/example_hdfs_checkpoint_notebook_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from hdfscontents.hdfscheckpoints import HDFSCheckpoints

# Tell IPython to use HDFSCheckpoints for checkpoint storage.
c.ContentsManager.checkpoints_class = HDFSCheckpoints

c.HDFSCheckpoints.hdfs_namenode_host='<namenode_host_ip>'
c.HDFSCheckpoints.hdfs_namenode_port=8020
c.HDFSCheckpoints.root_dir='/user/amangarg'
c.HDFSCheckpoints.hdfs_user='hdfs'
9 changes: 9 additions & 0 deletions examples/example_hdfs_contents_notebook_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from hdfscontents.hdfsmanager import HDFSContentsManager

# Tell IPython to use HDFSContentsManager as ContentsManager .
c.NotebookApp.contents_manager_class = HDFSContentsManager

c.HDFSCheckpoints.hdfs_namenode_host='<namenode_host_ip>'
c.HDFSCheckpoints.hdfs_namenode_port=8020
c.HDFSCheckpoints.root_dir='/user/amangarg'
c.HDFSCheckpoints.hdfs_user='hdfs'

0 comments on commit 174339a

Please sign in to comment.