美文网首页
Apache Griffin

Apache Griffin

作者: 无量儿 | 来源:发表于2022-02-02 12:31 被阅读0次

    -bash: wget: command not found

    brew install wget安装wget,结果提示如下错误:
    Error: The following directories are not writable by your user: /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/man/man8

    image.png
    解决方法:根据提示信息执行以下命令
    sudo chown -R $(whoami) /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/man/man8
    chmod u+w /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/man/man8
    

    准备demo库

    hive -e "create database griffin_demo"
    

    准备demo表

    wget http://griffin.apache.org/data/batch/create-table.hql
    hive -f create-table.hql
    

    获取演示数据

    wget http://griffin.apache.org/data/batch/gen_demo_data.sh
    wget http://griffin.apache.org/data/batch/gen_delta_src.sh
    wget http://griffin.apache.org/data/batch/demo_basic
    wget http://griffin.apache.org/data/batch/delta_src
    wget http://griffin.apache.org/data/batch/delta_tgt
    wget http://griffin.apache.org/data/batch/insert-data.hql.template
    

    执行Python脚本

    chmod 755 *.sh
    ./gen_demo_data.sh
    

    https://blog.csdn.net/github_39577257/article/details/90607081

    相关文章

      网友评论

          本文标题:Apache Griffin

          本文链接:https://www.haomeiwen.com/subject/oyxsyhtx.html