`

MongoDB: Install and configureation

 
阅读更多

MongoDB

Download

#git clone https://github.com/mongodb/mongo


To install dependencies on Ubuntu systems:

#sudo apt-get install aptitude

#sudo aptitude install scons build-essential

#sudo aptitude install libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev

#sudo aptitude install python-pymongo

 

Build and Install

#scons all  (it taks about one hour)

#scons --prefix=/opt/mongo install     (--prefix point to the bash dir used by mongo)

add the --prefix dir to PATH in ~/.bashrc and source to make it effecitve

#sudo mkdir -p /data/db

#sudo chmod 777 -R /data

#mongod   //boot mongo database

#mongo    //start a client

>help

 

 

MongoDB Docs

#git clone https://github.com/mongodb/docs.git
#cd docs/
#git config --global url."https://".insteadOF git://   
#python bootstrap.py  (use above commands avoid errors)
make html

 But error comes :



 

The complete build mongoDB docs see:

http://docs.mongodb.org/manual/meta/build/

 

#sudo apt-get install python-sphinx python-yaml python-argparse inkscape python-pip

#pip install droopy fabric

I can't build it sucessuflly. Instead of downloading pdf version from

http://docs.mongodb.org/master/MongoDB-manual.pdf

 

 

 

MongoDB Connector for Hadoop

#git clone https://github.com/mongodb/mongo-hadoop

#cd mongo-hadoop

alter build.gradle(to skip download some test data and coloarda repository url from https to http avoiding buile failure), please download attachment one build.gradle.gif and rename it to build.gradle

# ./gradlew jar -Phadoop_version=2.3

 

 

The jars will be placed in to build/libs for each module. e.g. for the core module, it will be generated in the core/build/libs directory.

After successfully building, you must copy the jars to the lib directory on each node in your hadoop cluster. This is usually one of the following locations, depending on which Hadoop release you are using:

  • $HADOOP_HOME/lib/
  • $HADOOP_HOME/share/hadoop/mapreduce/
  • $HADOOP_HOME/share/hadoop/lib/

 

 

 

 

References

http://blog.csdn.net/junchaox/article/details/8552961

  • 大小: 29.2 KB
分享到:
评论

相关推荐

    MongoDB: The Definitive Guide

    MongoDB: The Definitive Guide MongoDB is a powerful, flexible, and scalable general­purpose database. It combines the ability to scale out with features such as secondary indexes, range queries, ...

    解决Linux上MongoDB启动脚本错误---env: /etc/init.d/mongodb : no such file or directory

    - 启动MongoDB:`sudo systemctl start mongodb` - 设置开机启动:`sudo systemctl enable mongodb` 6. **手动创建启动脚本** 如果系统确实不支持Init.d,但需要使用旧的启动方式,可以手动创建一个启动脚本。这...

    Windows上安装MongoDB:完整步骤详解.pdf

    1. 连接MongoDB:输入`mongo.exe`命令,连接到本地MongoDB服务。 2. 创建数据库:使用`use <database_name>`命令,如`use testdb`,创建一个名为"testdb"的数据库。 3. 插入数据:在选定的数据库中,使用`db....

    pm2-mongodb:用于监视mongodb数据库的PM2模块

    描述 PM2模块可自动监视mongodb的生命体征: 查询,输入,更新,删除 连接数 已用存储空间 网络速度(输入和输出) 代表名称和状态 pm2-mongodb ... pm2 set pm2-mongodb:ip 42.42.42.42 (我的mongod

    docker-mongodb:一个盒子里的MongoDB

    docker run -d --name mongodb -p 27017:27017 -v /data/mongodb:/var/lib/mongodb anapsix/mongodb 作为客户: docker run -it --rm anapsix/mongodb mongo --help 配置 您可以像通常那样通过命令行传递配置选项...

    feathers-mongodb:mongodb的羽毛服务

    羽毛mongodb 用于数据库适配器,使用用于。 $ npm install --save mongodb feathers-mongodb ... connect ( 'mongodb://localhost:27017/feathers' ) . then ( client => { app . use ( '/messages' ,

    loglog-mongodb:日志日志的 Mongodb 日志传输

    日志日志 MongoDB MongoDB 日志传输 安装: npm install -S loglog-mongodb ... connection : 'mongodb://my_host/my_db' , collection : 'logs' // (default) // See all options for db.createCollection

    puppet-mongodb:mongodb安装

    mongodb人偶模块 目录 概述 从OS存储库或从MongoDB社区/企业存储库在RHEL / Ubuntu / Debian上安装MongoDB。 模块说明 ...如果只想使用默认选项安装服务器,则可以运行include mongodb::server 。

    Spring集成MongoDB官方指定jar包:spring-data-mongodb-1.4.1.RELEASE.jar

    Spring集成MongoDB官方指定jar包:spring-data-mongodb-1.4.1.RELEASE.jar

    mqemitter-mongodb:基于MongoDB的MQEmitter

    安装$ npm install mqemitter-mongodb --save例子var mongodb = require ( 'mqemitter-mongodb' )var mq = mongodb ( { url : 'mongodb://127.0.0.1/mqemitter?auto_reconnect'} )var msg = { topic : 'hello world'...

    joola.datastore-mongodb:Joola 的 MongoDB 数据存储

    是一个数据分析和可视化中间件,旨在帮助您快速构建自定义的嵌入式数据分析应用程序。... "dsn" : "mongodb://localhost:27017/joola" } } } } 你们都准备好了。 为确保它正常工作,请运行一个节点并监视日志以查

    stitch-android-sdk:MongoDB Stitch Android SDK

    Stitch SDK弃用通知Stitch SDK功能已移至Realm SDK。 使用之一,可以将使用... 安卓将以下内容添加到您的应用程序模块的build.gradle中: implementation ' org.mongodb:stitch-android-sdk:4.7.0 ' 还将以下内容添加到

    DartORM-MongoDB:适用于DartORM的MongoDB适配器

    用于DartORM的MongoDB适配器。 用法示例 import 'package:dart_orm/dart_orm.dart' as ORM; import 'package:dart_orm_adapter_mongodb/... 'mongodb://$ mongoUser :$ mongoPass @127.0.0.1/$ mongoDBName ' ); awa

    bitnami-docker-mongodb:Bitnami MongoDB Docker映像

    bitnami-docker-mongodb:Bitnami MongoDB Docker映像

    MongoDB and Python Patterns and processes

    pip install pymongo ``` #### 三、使用Python进行MongoDB的基本操作 ##### 1. 连接到MongoDB - **连接服务器**:使用`pymongo.MongoClient`类建立与MongoDB服务器的连接。例如: ```python from pymongo ...

    homebrew-mongodb:带有副本集的mongdb安装脚本

    您可以在找到它安装了mongodb 您可以在终端中使用以下命令安装mongodb: brew install mongodb档案文件homebrew.mxcl.mongodb#.plist mongod#.conf创建的目录/ usr / local / var / log / mongodb#/ / usr / ...

    node-cache-manager-mongodb:MongoDb的节点缓存存储

    MongoDB的节点缓存管理器存储 模块的MongoDb存储。 @onlyurei和@dcolens的特殊thx安装npm install cache-manager-... caching ( { store : mongoStore , uri : "mongodb://user:pass@localhost:27017/nodeCacheDb" ,

Global site tag (gtag.js) - Google Analytics