Skip to content

navinvishy/mongo-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

mongo-spark

A simple example using Apache Spark and MongoDB. This project uses Hadoop 2.6.0 and the Mongo Hadoop connector 1.3.1.

Steps to get this application running on a Mac:

This should set up your environment. Steps to run:

  • Start hdfs. cd into /usr/local/Cellar/hadoop/2.6.0/sbin and run $ ./start-dfs.sh. Browse to http://localhost:50070/ to make sure Hadoop is running.
  • Run the project. This should create a file in hdfs. You can view the contents of the file as follows:
$ hdfs dfs -cat hdfs://localhost:9000/state_pops.txt/part-00000
14/12/25 21:49:32 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
(NE,1578139)
(NY,17990402)
(IA,2776420)
(IL,11427576)
(PA,11881643)
(CT,3287116)...

About

A simple example using Apache Spark and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages