Tez编译问题

protobuf缺失:
解决办法:安装protobuf
protobuf安装步骤:
1.下载protobuf安装包
2.解压文件,进入压缩目录,执行如下命令:

 ./configure --prefix=/usr/local/protobuf
 make 
 make check 
 make install

3.配置protobuf.sh文件

 vim /etc/profile/protobuf.sh添加如下内容
 export PATH=$PATH:/usr/local/protobuf/bin
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/protobuf/lib

4.执行

1> source /etc/profile

bower缺失:

> npm install -g bower

2.解压apache-tez-0.7.0-src.tar.gz文件修改tez-ui中的配置文件,如下(添加–allow-root)

 </executable>
   <arguments>
    <argument>node_modules/bower/bin/bower</argument>
    <argument>install</argument>
    <argument>--remove-unnecessary-resolutions=false</argument>
    <argument>--allow-root</argument>
   </arguments>
 </configuration>

3.把修改之后的文件夹压缩成原来的格式

 tar -czf apache-tez-0.7.0-src.tar.gz apache-tez-0.7.0-src

更多精彩原创文章,详见红象云腾社区

猜你喜欢

转载自blog.csdn.net/redoop123/article/details/79709783