Exemplo n.º 1
0
    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')
Exemplo n.º 2
0
    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')
Exemplo n.º 3
0
 def install_hdfs_xml(self):
     OsUtil.install(source=self.source, target=self.target, files=['hdfs-site.xml'], with_sudo=True)
Exemplo n.º 4
0
 def install_docker_compose(self):
     OsUtil.install(source=OsUtil.join(self.source, 'jupyter'),
                    target=self.target,
                    files=['docker-compose.yml'],
                    file_suffix='.example')