首页 \ 问答 \ 如何在hadoop中启动所有守护进程 - 比如linux中的start-all.sh(how to start all daemon process in hadoop - like start-all.sh in linux)

如何在hadoop中启动所有守护进程 - 比如linux中的start-all.sh(how to start all daemon process in hadoop - like start-all.sh in linux)

我刚刚开始在windows 7中使用hadoop,cygwin。我需要知道,这是有任何方法可以使用linux中的命令like-all-all.sh启动所有服务。 我在cygwin中使用此命令不起作用。 如果可能的话,请建议我使用cygwin在windows 7中使用hadoop。

我每次都需要按照以下步骤启动五个守护进程

Start the namenode in the first window by executing
cd hadoop
bin/hadoop namenode

Start the secondary namenode in the second window by executing
cd hadoop
bin/hadoop secondarynamenode

Start the job tracker the third window by executing
cd hadoop
bin/haoop jobtracker

Start the data node the fourth window by executing
cd hadoop
bin/haoop datanode

Start the task tracker the fifth window by executing
cd hadoop
bin/haoop tasktracker

请任何身体帮助


i have just started to work on hadoop, cygwin in windows 7. i need to know , that is there any method to start all the services using command like- start-all.sh in linux. i used this command in cygwin doesnt work. And if possible pls suggest me any reference to work on hadoop in windows 7 with cygwin.

i need to do following steps every time to start five daemons like

Start the namenode in the first window by executing
cd hadoop
bin/hadoop namenode

Start the secondary namenode in the second window by executing
cd hadoop
bin/hadoop secondarynamenode

Start the job tracker the third window by executing
cd hadoop
bin/haoop jobtracker

Start the data node the fourth window by executing
cd hadoop
bin/haoop datanode

Start the task tracker the fifth window by executing
cd hadoop
bin/haoop tasktracker

pls any body help


原文:https://stackoverflow.com/questions/21413768
更新时间:2022-06-19 19:06

最满意答案

只是为了澄清:你说,错误不是确定性的意思,你在页面/网址上得到错误,你可以在几秒钟/几分钟后加载而没有问题? 不好。

说实话,我无法直接帮助你。 只是给出一些一般性的提示。

什么是你的托管包,你安装/配置操作系统,PHP等或托管服务? 如果这是主持人的工作,他们应该帮助。

如果主机无法帮助您,我建议您更换主机,而不是浪费更多时间。 无论如何,他们应该正确配置日志记录。 奇怪的是错误日志中没有任何内容。

尝试激活(或获取主机激活)日志记录并检查日志文件。 但首先检查TYPO3系统报告是否有任何明显的错误:

  • 运行TYPO3系统报告:“TYPO3后端”:“系统”:“报告”:“状态报告”
  • 在“TYPO3安装工具”中选中“系统环境”

现在检查日志

  • 检查sys_log:“TYPO3 Backend”:“System”:“Log”
  • 检查Webserver / PHP日志
  • 检查系统日志(取决于操作系统,例如journalctl
  • 看看phpinfo的输出。 它应该包括一些OPcache统计信息。 看看“浪费的内存”,“可用内存”和“OOM重启”

如果您具有系统的root访问权限:检查opcache配置,可能在此处添加更多内存或发布配置


Just to clarify: You say, that the errors are not deterministic meaning, that you get errors on pages / urls which you can load without problems a few seconds / minutes later? Not good.

To tell the truth, I can't directly help you with this. Just give a few general hints.

What is your hosting package, do you install / configure operating system, php etc or the hoster? If it's the job of the hoster, they should help.

If the hoster can't help you with this, I would recommend switching the hoster and not waste more time on this. In any case they should configure the logging correctly. It's weird there is nothing in the error logs.

Try to activate (or get the hoster to activate) logging and check logfiles. But first check the TYPO3 system reports for any obvious errors:

  • Run TYPO3 system report: "TYPO3 Backend" : "System" : "Reports" : "Status report"
  • In the "TYPO3 Install Tool" check "System environment"

Now check the logs

  • check the sys_log: "TYPO3 Backend" : "System" : "Log"
  • check the Webserver / PHP logs
  • check system logs (depends on operating system, e.g. journalctl)
  • have a look at the output of phpinfo. It should include some OPcache statistics. Look at "wasted memory", "Free memory" and "OOM restart"

If you have root access to the system: Check opcache configuration, possibly adding more memory or post configuration here

相关问答

更多
  • 非常感谢您的回答! 问题很简单。 事实证明,我的用户只是没有任何管理员权限,这就是为什么我找不到其他人有同样奇怪的问题。 有人告诉我,我的帐户是管理员帐户,所以我甚至没想到这是一个可能的问题。 对不起那些打扰你这个问题的人! 您诚挚的,菲利克斯 Thank you very much for your answers! The problem was as simple as it can be. It turned out that my user just didn't have any admin a ...
  • 节日快乐! 在fileadmin/user_upload/...有一些包含特殊字符的文件,如'äüö'等。 某些编辑者通过FTP上传这些文件,而不是通过TYPO3-Filelist。 该死的 ;) TYPO3 CMS上传自动将wrong-file_2ae.pdf更改为wrong-file_2ae.pdf - FTP不会。 没有错误! Happy Holidays! There were some files with special characters like 'ä ü ö' etc. in filea ...
  • 无需FAL或在服务器上保存文件。 您可以在控制器中添加自定义操作,以设置内容类型和处置标头,以便像下载一样处理您的请求: public function exportAction { // Just an example on how you could access the downloadable data. $records = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'tx_domain_model_table'); $da ...
  • 哈! MAMP 3.2.1或我的设置中的后缀设置一定有问题。 我检查了后缀日志,它说: May 19 20:50:51 myname.local postfix/postdrop[18672]: warning: mail_queue_enter: create file maildrop/744151.18672: Permission denied 我不知道如何解决这个问题,但如果$TYPO3_CONF_VARS['BE']['warning_email_addr'] ,安装工具登录将再次起作用。 所 ...
  • 只是为了澄清:你说,错误不是确定性的意思,你在页面/网址上得到错误,你可以在几秒钟/几分钟后加载而没有问题? 不好。 说实话,我无法直接帮助你。 只是给出一些一般性的提示。 什么是你的托管包,你安装/配置操作系统,PHP等或托管服务? 如果这是主持人的工作,他们应该帮助。 如果主机无法帮助您,我建议您更换主机,而不是浪费更多时间。 无论如何,他们应该正确配置日志记录。 奇怪的是错误日志中没有任何内容。 尝试激活(或获取主机激活)日志记录并检查日志文件。 但首先检查TYPO3系统报告是否有任何明显的错误: 运 ...
  • 我找不到这个脚本的确切位置,但找到了相应的JavaScript文件。 也许这会有所帮助: https : //github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js 但我很确定它使用所有注册的登录服务。 I can't find the exact position of this script, but found the corresponding ...
  • 检查模板文件名的首字母大写。 规则是,对于名为fooBarAction()动作,模板文件必须命名为FooBar.html Check so template filename has first letter uppercase. The rule is that for action named fooBarAction() template file must be named FooBar.html
  • 在我讨论过的任何论坛中都没有答案,所以我最终以$_POST的传统方式访问了params。 There is no answer in any of the forums I've questioned this, so I ended up accessing the params the traditional way with $_POST.
  • 我的一个朋友解决了这个问题。 我们有一个vhost星座,每个Web根文件夹属于不同的系统用户。 这导致编写php会话时出错(在每个项目中使用不同的系统用户)。 设置php会话文件夹的权限(只有文件夹而不是文件!)到777.会话文件夹属于不同的非项目特定系统用户(apache / www-data / whatever)。 chmod 0777 /var/lib/php/session 现在,每个项目的每个系统用户都有权编写会话。 无论如何,会话文件本身会获得更多限制性权限。 A friend of mine ...
  • 您必须将TYPO3 6.2升级到typo3 7.6.x. 在TYPO3 7.6中,typo3 defult tables and tables fileds主要变化。 因此,如果您不遵循所有INSTALL TOOLS Upgrade Wizard steps and compare database specification 。 然后首先按照所有这些步骤。 You have to upgrade TYPO3 6.2 to typo3 7.6.x. In TYPO3 7.6 major changes in ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。