【问题标题】:Thrift installation ./bootstrap configuration bad interpreterThrift 安装 ./bootstrap 配置错误解释器
【发布时间】:2017-08-10 11:43:41
【问题描述】:

安装 Thrift 以使用不同语言访问我的 hbase 时,

在我运行时的配置过程中

[hadoop@localhost thrift]$  ./bootstrap.sh

我明白了:

-bash: ./bootstrap.sh: /bin/sh^M: bad interpreter: No such file or directory

如何解决这个问题?

【问题讨论】:

    标签: hadoop hbase thrift bigdata


    【解决方案1】:

    从报告的错误来看,bootstrap.sh 似乎有一些控制字符(注意 ^M 错误)。可能是 bootstrap.sh 需要显式转换成 unix 格式,可以使用 dos2unix 命令。

    dos2unix ./bootstrap.sh
    

    【讨论】:

      【解决方案2】:

      看起来该文件的#! hashbang 行已损坏。

      在使用像dos2unix 这样的工具之前,我宁愿检查一下为什么^M 存在。应该不是这样的,很有可能文件有更多的缺陷。

      如有疑问,请尝试恢复 bootstrap.sh from the original source

      【讨论】:

        猜你喜欢
        • 2016-10-20
        • 1970-01-01
        • 2019-08-21
        • 1970-01-01
        • 1970-01-01
        • 2019-10-29
        • 1970-01-01
        • 2012-05-21
        • 1970-01-01
        相关资源
        最近更新 更多