Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
d5664691
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d5664691
编写于
1月 28, 2016
作者:
J
Jignesh Patel
提交者:
Dave Cramer
1月 28, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix the instructions to lay the foundation to allow multiple distros.
上级
0b770d34
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
39 deletion
+23
-39
vagrant/README.md
vagrant/README.md
+23
-39
未找到文件。
vagrant/README.md
浏览文件 @
d5664691
...
...
@@ -28,12 +28,21 @@ Go to the directory in your machine where you want to check out the GPDB code,
and clone the GPDB code by typing the following into a terminal window.
```
shell
git clone
git clone
https://github.com/greenplum-db/gpdb.git
git clone https://github.com/greenplum-db/gpdb.git
```
##3: Setup and start the virtual machine
Next go to the
`gpdb/vagrant`
directory and start a virtual machine using the
Vagrant file there; i.e. from the terminal window, issue the following command:
Next go to the
`gpdb/vagrant`
directory. This directory has virtual machine
configurations for different operating systems. Pick the distro of your choice,
and
`cd`
to that directory. For this example, we will assume that you pick
`centos`
. So, issue the following command:
```
shell
cd
centos
```
Next we will start a virtual machine using the Vagrant file in that directory.
From the terminal window, issue the following command:
```
shell
cd
gpdb/vagrant
...
...
@@ -62,8 +71,8 @@ While you are viewing the Vagrantfile, a few more things to notice here are:
use to 2. Again, feel free to change this number based on the machine that
you have.
*
Notice the parameter
`config.vm.synced_folder`
. This configuration requests
that the code you checked out
into the directory
`gpdb`
be mounted as
`/gpdb`
in the virtual machine.
More on this later below.
that the code you checked out
get mounted as
`/gpdb`
in the virtual machine.
More on this later below.
Once the command above (
`vagrant up`
) returns, we are ready to start the
virtual machine. Type in the following command into the terminal window
...
...
@@ -172,10 +181,10 @@ We also need to change the guest OS settings as per the instructions
The security limits and other settings specified in that link are not necessary,
so we can skip that. To change the guest OS settings, issue the following
commands in the guest shell (you could use any editor that you like, but you will
need to use "sudo mode" to save the changes to the
`/etc/sysctl.
conf`
file
):
need to use "sudo mode" to save the changes to the
`/etc/sysctl.
d`
directory
):
```
shell
sudo
vi /etc/sysctl.conf
sudo
vi /etc/sysctl.
d/gpdb.
conf
```
Then, hit capital-
`G`
, followed by capital-
`O`
, and paste the following
...
...
@@ -203,40 +212,15 @@ net.core.wmem_max = 2097152
vm.overcommit_memory
=
2
```
Hit the escape key, then type
`:wq`
to finish saving the file. Verify that you
see the changes that you made by typing in
`cat /etc/sysctl.conf`
.
##6: Reboot the Guest OS
We have to reboot the guest OS to allow the changes to the
`sysctl.conf`
file to take effect. In the guest shell, type in:
```
shell
exit
```
see the changes that you made by typing in
`cat /etc/sysctl.d/gpdb.conf`
.
Then, halt the virtual machine by typing the following command (in the host
OS shell as you are there now!):
```
shell
vagrant halt
```
Now, before bringing up vagrant again, we need to make sure that we have the
VirtualBox guest additions setup. This sadly requires an extra step (which
hopefully will go away in future version of Vagrant and VirtualBox). From
the host terminal, type in the following command:
```
shell
vagrant plugin
install
vagrant-vbguest
```
Next, apply the changes that you just made by running the following command:
Now bring up virtual box again, by typing (in the host OS terminal), the
following commands:
```
shell
vagrant up
vagrant ssh
sudo
sysctl
-p
/etc/sysctl.d/gpdb.conf
```
You are back in the guest OS shell! But, now you have GPDB compiled, installed,
and ready to run.
##7: Initialize and start GPDB
##6: Initialize and start GPDB
Next we initialize GPDB using the config file that we created above. In the
*guest*
shell type in:
```
shell
...
...
@@ -307,7 +291,7 @@ that were posted on each day. Pretty cool!
(Note if you want to exit the
`psql`
shell above, type in
`\q`
.)
##
8: Using GDB
##
7: Using GDBP
If you are doing serious development, you will likely need to use a debugger.
Here is how you do that.
...
...
@@ -332,13 +316,13 @@ attach 25486
Of course, you can change which function you want to break into, and change
whether you want to debug the master or the segment processes. Happy hacking!
##
9
: Want a larger cluster to play around with?
##
8
: Want a larger cluster to play around with?
If you want to play around with a larger cluster, then you can spin up the
`gpdemo`
cluster that is described in the
[
README.md
](
"https://github.com/greenplum-db/gpdb/blob/master/README.md"
)
file. But, there a few things
that you will have to do differently. Here are the steps.
First, we will need to spin down the GPDB server that we just stared above,
First, we will need to spin down the GPDB server that we just star
t
ed above,
as the setup for the demo has a different configuration. Issue the following
command from your Vagrant shell:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录