【问题标题】:StreamSets Data Collector InstallationStreamSets 数据收集器安装
【发布时间】:2020-02-29 18:04:44
【问题描述】:

我在手动安装 StreamSets 数据收集器的完整压缩包时遇到问题。我在具有超过 30GB 存储空间的 VM 设置中运行 Ubuntu。

我从 StreamSets 网站上阅读了the Manual Page,但它没有用。

这是我到目前为止所做的:

  1. 我已将完整的压缩包下载到我的Home/Downloads
  2. 我已将 tarball 解压缩到我的 Home/Downloads 文件夹,并且我有目录 streamsets-datacollector-3.13.0 及其所有子目录
  3. 现在,当我尝试 bin/streamsets dc 时,出现以下错误:
WARN: could not determine Java environment version; expected 1.8, which are the supported versions
Configuration of maximum open file limit is too low: 1024 (expected at least 32768).

我已经使用 apt install java* 下载了所有 java 文件 我试图改变/etc/security/limits.conf中的限制 如下所示:

#*               soft    core            0
#root            hard    core            100000
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#ftp             -       chroot          /ftp
#@student        -       maxlogins       4

# End of file
*                soft     nproc          33000
*                hard     nproc          33000
*                soft     nofile         33000
*                hard     nofile         33000

之后我什至重新启动了系统。但是,当我输入 ulimit -n 时,它仍然给我默认的 1024

我应该如何解决这个错误?

【问题讨论】:

  • java -version 并编辑您的问题以包含回复。如安装要求所述,SDC 需要 Oracle Java 8 或 OpenJDK 8。此外,/etc/security/limits.conf 中的 * 适用于所有用户 除了 root,因此如果您以 root 身份运行(并且您真的不应该)你需要在第一列中再添加两行root
  • 在limits.conf/root 上看到这个问题:stackoverflow.com/questions/38991351/…

标签: linux ubuntu installation config streamsets


【解决方案1】:

你只需要输入“ulimit -n 32768”来改变

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-11-21
    • 1970-01-01
    • 2022-01-25
    • 2010-11-08
    • 1970-01-01
    • 2011-11-01
    • 2021-06-07
    • 1970-01-01
    相关资源
    最近更新 更多