hadoop mongodb install(3)
reference:http://dblab.xmu.edu.cn/blog/868-2/
root@iZuf68496ttdogcxs22w6sZ:~# mv mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz /usr/local/
root@iZuf68496ttdogcxs22w6sZ:~# su hadoop
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo tar zxf mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz -C /usr/local/
[sudo] password for hadoop:
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo mv mongodb-linux-x86_64-ubuntu1604-3.2.7 mongodb
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo chown -R hadoop:hadoop mongodb
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ cd mongodb/
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ ls
bin GNU-AGPL-3.0 MPL-2 README THIRD-PARTY-NOTICES
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ mkdir data/db/journal -p
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ ls
bin data GNU-AGPL-3.0 MPL-2 README THIRD-PARTY-NOTICES
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ cd data/db/journal/
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/data/db/journal$ ls
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/data/db/journal$ touch mongodb.log
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/data$ cat mongodb.conf
logpath=/usr/local/mongodb/data/db/journal/mongodb.log
logappend=true
fork=true
dbpath=/usr/local/mongodb/data/db
port=27017
add export PATH=$PATH:/usr/local/mongodb/bin to ~/.bashrc
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/bin$ mongod -f ../data/mongodb.conf
about to fork child process, waiting until server is ready for connections.
forked process: 16409
child process started successfully, parent exiting
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/bin$ pgrep mongod -l
16409 mongod
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/bin$ mongo
MongoDB shell version: 3.2.7
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten]
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten]
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 7856 processes, 65535 files. Number of processes should be at least 32767.5 : 0.5 times number of files.
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten]
if we want to in-depth study mongodb , we can learn from :
http://www.runoob.com/mongodb/mongodb-connections.html
hadoop mongodb install(3)的更多相关文章
- hadoop redis install (4)
reference: http://dblab.xmu.edu.cn/blog/131/ https://github.com/dmajkic/redis https://blog.csdn ...
- Hadoop+MongoDB的四种方案
背景: 公司核心业务库现存在MongoDB中,分布在6台MongoDB节点.现面临如下问题: 1.最大的一张表有10多个G,MongoDB在查询方面尚能胜任,但是涉及到复杂计算时会比较吃力. 2.Mo ...
- mongodb Install the MongoDB service
在用到mongodb时,首先要运行mongod.exe以启动mongo,这样就会出现命令框( command prompt),为了避免出现这种情况.要以服务的形式来启动mongo,这样就不会出现命令框 ...
- MongoDB install
下载地址1:https://www.mongodb.org/dl/linux下载地址2:https://www.mongodb.com/download-center/community关于Mongo ...
- hadoop mysql install (5)
reference : http://dblab.xmu.edu.cn/blog/install-mysql/ http://wiki.ubuntu.org.cn/MySQL #install mys ...
- linux(centos )mongodb install
file down :http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.9.tgz /usr/local/ tar zxvf mongo ...
- hadoop kafka install (6)
reference: http://kafka.apache.org/quickstart http://dblab.xmu.edu.cn/blog/1096-2/ hadoop@iZuf68496 ...
- hadoop hive install (5)
reference : http://dblab.xmu.edu.cn/blog/install-hive/ http://dblab.xmu.edu.cn/blog/hive-in-practice ...
- hadoop hbase install (2)
reference: http://dblab.xmu.edu.cn/blog/install-hbase/ reference: http://dblab.xmu.edu.cn/blog/2139- ...
随机推荐
- 【maven】在IDEA上 使用maven进行打包时报错:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar
报错内容如下: [INFO] ------------------------------------------------------------------------ [INFO] BUILD ...
- FieldOffset
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.G ...
- [oracle复习] - Oracle
https://deadzq.github.io/oracle/Oracle.html 我的oracle笔记1 https://deadzq.github.io/oracle/Oracle2.html ...
- flink架构介绍
前言 flink作为基于流的大数据计算引擎,可以说在大数据领域的红人,下面对flink-1.7的架构进行逻辑上的分析并和spark做了一些关键点的对比. 架构 如图1,flink架构分为3个部分,cl ...
- mysql 开启远程访问
# vi /etc/mysql/my.cnf修改 bind-address = 127.0.0.1 为 bind-address = 0.0.0.0 修改完成后重启mysql服务 # sudo / ...
- 会员通过消费攒积分,升级RENEW以及降级的需求
需求看上去及其简单,如下: 用文字描述就开始不容易了. 先按等级排个序,根据下一个等级,推前一个等级: --C---B----V-----A 在计算一下升级需要的积分:--C表示普通会员-----需要 ...
- 使用innerHTML时要注意的一点
为某个元素添加内容时,使用的是document.getElementsByClassName,由于只有一个元素拥有这样的ClassName,就直接这样用,document.getElementsByC ...
- Fisher线性判别分析
Fisher线性判别分析 1.概述 在使用统计方法处理模式识别问题时,往往是在低维空间展开研究,然而实际中数据往往是高维的,基于统计的方法往往很难求解,因此降维成了解决问题的突破口. 假设数据存在于d ...
- Flutter学习笔记(五)
一.Container 是一个便利的Widget,它把通用的绘制.定位和Widget的大小结合了起来. Container会先用padding填充子Widget和border之间的空白,然后添加其他的 ...
- viewpager实现画廊(一屏多个Fragment)效果
本文主要介绍如何利用ViewPager实现Gallery的画廊效果,即一屏显示多个Fragment. 效果图如下: 在 使用Gallery的时候大家会发现有几个问题(1). 无法控制每次滑动只滑动一页 ...