描述容器中的路径-ansible

bbuxkriu  于 2021-05-31  发布在  Hadoop
关注(0)|答案(0)|浏览(143)

我使用ansible运行一个使用hadoop的基准测试。我已经安装了ClouderaHadoop容器。如何定义容器中core-site.xml文件的路径?

- name: 'Configuring the benchmark'
  replace:
    path: 'path/to/benchmark/conf/ConfFile.conf'
    regexp: '/usr/local/hadoop/etc/hadoop'
    replace: '/etc/hadoop/conf/core-site.xml'

“替换”步骤中的路径在容器中,但ansible在我的本地计算机上搜索它。如何定义这是容器中的路径?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题