def install_hdfs_xml(self): target = OsUtil.join(self.target, 'shared', 'resources', 'spark') OsUtil.mkdir('-p {}'.format(target)) OsUtil.install(source=OsUtil.join(self.source, 'spark'), target=target, files=['hdfs-site.xml'], file_suffix='.example')
def install_dockerfile(self): target = OsUtil.join(self.target, 'shared', 'resources', 'jupyter') OsUtil.mkdir('-p {}'.format(target)) OsUtil.install(source=OsUtil.join(self.source, 'jupyter'), target=target, files=['Dockerfile'], file_suffix='.example')
def install_hdfs_xml(self): OsUtil.install(source=self.source, target=self.target, files=['hdfs-site.xml'], with_sudo=True)
def install_docker_compose(self): OsUtil.install(source=OsUtil.join(self.source, 'jupyter'), target=self.target, files=['docker-compose.yml'], file_suffix='.example')