gpstart error: Do not have enough valid segments to start the array.
来源:互联网 发布:微软3600鼠标 mac 编辑:程序博客网 时间:2024/06/05 15:10
最近在Linux上装个GP测试,装的比较简单,单节点,问题是在安装好了GP后第二天使用gpstart启动GP时,启动失败,启动日志
20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[WARNING]:-Failed segment starts = 1 <<<<<<<<20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:- Skipped segment starts (segments are marked down in configuration) = 020170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-----------------------------------------------------20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-Successfully started 0 of 1 segment instances <<<<<<<<20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-----------------------------------------------------20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[WARNING]:-Segment instance startup failures reported20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[WARNING]:-Failed start 1 of 1 segment instances <<<<<<<<20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[WARNING]:-Review /home/gpadmin/gpAdminLogs/gpstart_20170606.log20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-----------------------------------------------------20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-Commencing parallel segment instance shutdown, please wait...20170606:23:12:30:018059 gpstart:quickstart:gpadmin-[ERROR]:-gpstart error: Do not have enough valid segments to start the array.
错误显示:
Do not have enough valid segments to start the array.
上网搜索了一波,说是shared_buffers设置的值大了,一般小于1000,或者有的答案是小于250,但是我很奇怪,我从来没有改过这个值,去/gpmaster/gpseg-1/postgresql.conf
中查看shared_buffers的值为125Mb。
#------------------------------------------------------------------------------# RESOURCE USAGE (except WAL)#------------------------------------------------------------------------------# - Memory -shared_buffers = 125MB # inserted by initdb#shared_buffers = 128MB # min 128kB or max_connections*16kB # (change requires restart)#temp_buffers = 8MB # min 800kBmax_prepared_transactions = 250 # can be 0 or more # (change requires restart)# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory# per transaction slot, plus lock space (see max_locks_per_transaction).#work_mem = 32MB # min 64kB#maintenance_work_mem = 64MB # min 1MB#max_stack_depth = 2MB # min 100kB
所以这个应该不是问题的原因,没办法只能去查看启动日志,
[gpadmin@quickstart gpseg-1]$ cd /home/gpadmin/gpAdminLogs/[gpadmin@quickstart gpAdminLogs]$ lsgpconfig_20170518.log gpstart_20170515.loggpinitsystem_20170514.log gpstart_20170518.loggpinitsystem_20170606.log gpstart_20170519.loggprecoverseg_20170518.log gpstart_20170523.loggpsegstart.py_quickstart:gpadmin_20170514.log gpstart_20170606.loggpsegstart.py_quickstart:gpadmin_20170606.log gpstate_20170518.loggpsegstop.py_quickstart:gpadmin_20170514.log gpstop_20170514.loggpsegstop.py_quickstart:gpadmin_20170515.log gpstop_20170515.loggpsegstop.py_quickstart:gpadmin_20170518.log gpstop_20170518.loggpsegstop.py_quickstart:gpadmin_20170606.log gpstop_20170606.loggpstart_20170514.log[gpadmin@quickstart gpAdminLogs]$ more gpstart_20170606.log
查看启动日志,发现在执行命令的时候找不着gpServer地址,
20170606:23:12:16:018059 gpstart:quickstart:gpadmin-[INFO]:- quickstart.cloudera /home/gpadmin/primary/gpseg0 4000020170606:23:12:23:018059 gpstart:quickstart:gpadmin-[INFO]:-Commencing parallel segment instance startup, please wait...20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-Process results...20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[ERROR]:-No segment started for content: 0.20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-dumping success segments: []20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-----------------------------------------------------20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-DBID:2 FAILED host:'quickstart.cloudera' datadir:'/home/gpadmin/primary/gpseg0' with reason:'cmd had rc=255 completed=True halted=False stdout='' stderr='ssh: Could not resolve hostname gpServer: Name or service not known^M''20170606:23:12:29:018059 gpstart:quickstart:gpadmin-[INFO]:-----------------------------------------------------
很奇怪,我昨天在安装的时候在hosts里面添加了这个值,结果去查看hosts中,真没有这个值,也就是说在机器重启之后这个值就没有了,现在还在纠结是为什么,在hosts里面加上gpServer就可以了。
所在在看日志的时候应该要看出问题的关键原因,走弯路是最骚的。
阅读全文
0 0
- gpstart error: Do not have enough valid segments to start the array.
- Error:Unable to start the daemon process: could not reserve enough space for object heap.
- Error:Unable to start the daemon process: could not reserve enough space for object heap.
- Error:Unable to start the daemon process: could not reserve enough space for object hea
- AS Error:Unable to start the daemon process: could not reserve enough space for object heap
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- Error: Failed to create the site. The machine does not have a valid license. Please authorize ArcGIS
- unable to start the daemon process:could not reserve enough space for object heap.
- 解决Androidstudio:Unable to start the daemon process: could not reserve enough space for object heap
- Unable to start the daemon process--Could not reserve enough space for object heap
- "Cant start Git: git.exe probably the path to Git executable is not valid" Fix it." error
- CRM安装问题一:Caller does not have enough privilege to set CallerOriginToken to the specified value
- The form bound to the class does not have a valid binding for the root component
- the vsphere client could not connect to you do not have permission to login to the server
- You do not appear to have the sources for the 3.5.0-23-generic kernel installed
- “you do not have permissions to run”
- PowerDesigner15 解决 Error The following objects do not have unique constraint
- 短语have the guts to do
- Android性能优化之利用LeakCanary检测内存泄漏及解决办法
- bzoj 1597 土地购买(斜率优化dp)
- vs2017 配置 OpenCV3.2.0
- 编程作业
- android 开发使用 kotlin 进行点击事件监听和界面跳转,直接传也方法作为参数
- gpstart error: Do not have enough valid segments to start the array.
- gdb远程调试release版本
- Java 线程池(ThreadPoolExecutor)原理分析与使用
- 配置secureCRT远程连接图形化显示
- Mac上传图片
- Lambda-in-Java
- 自适应波束形成学习笔记
- ProgressBar
- 收到你的来信,心里暖暖的,那今天就说点什么吧,软创实习怎么样?