From 19d6e867c6b439c9150171ccd32e545b7872bd17 Mon Sep 17 00:00:00 2001 From: Yatsishin Ilya <2159081+qoega@users.noreply.github.com> Date: Tue, 2 Feb 2021 12:08:47 +0300 Subject: [PATCH] HDFS test had a clash with 9000 ClickHouse port. --- .../docker_compose_kerberized_hdfs.yml | 2 +- tests/integration/helpers/cluster.py | 6 +++--- .../hdfs_configs/bootstrap.sh | 4 ++-- .../test_storage_kerberized_hdfs/test.py | 20 +++++++++---------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docker/test/integration/runner/compose/docker_compose_kerberized_hdfs.yml b/docker/test/integration/runner/compose/docker_compose_kerberized_hdfs.yml index a74476613f3..f2a659bce58 100644 --- a/docker/test/integration/runner/compose/docker_compose_kerberized_hdfs.yml +++ b/docker/test/integration/runner/compose/docker_compose_kerberized_hdfs.yml @@ -14,7 +14,7 @@ services: ports: - 1006:1006 - 50070:50070 - - 9000:9000 + - 9010:9010 depends_on: - hdfskerberos entrypoint: /etc/bootstrap.sh -d diff --git a/tests/integration/helpers/cluster.py b/tests/integration/helpers/cluster.py index 64f7e5dd889..a04c1b7bf7d 100644 --- a/tests/integration/helpers/cluster.py +++ b/tests/integration/helpers/cluster.py @@ -48,9 +48,9 @@ def run_and_check(args, env=None, shell=False): res = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, shell=shell) if res.returncode != 0: # check_call(...) from subprocess does not print stderr, so we do it manually - print('Stderr:\n{}\n'.format(res.stderr)) - print('Stdout:\n{}\n'.format(res.stdout)) - raise Exception('Command {} return non-zero code {}: {}'.format(args, res.returncode, res.stderr)) + print('Stderr:\n{}\n'.format(res.stderr.decode('utf-8'))) + print('Stdout:\n{}\n'.format(res.stdout.decode('utf-8'))) + raise Exception('Command {} return non-zero code {}: {}'.format(args, res.returncode, res.stderr.decode('utf-8'))) def subprocess_check_call(args): diff --git a/tests/integration/test_storage_kerberized_hdfs/hdfs_configs/bootstrap.sh b/tests/integration/test_storage_kerberized_hdfs/hdfs_configs/bootstrap.sh index 38f098ae1e1..971491d4053 100755 --- a/tests/integration/test_storage_kerberized_hdfs/hdfs_configs/bootstrap.sh +++ b/tests/integration/test_storage_kerberized_hdfs/hdfs_configs/bootstrap.sh @@ -34,11 +34,11 @@ cat >> /usr/local/hadoop/etc/hadoop/core-site.xml << EOF fs.defaultFS - hdfs://kerberizedhdfs1:9000 + hdfs://kerberizedhdfs1:9010 fs.default.name - hdfs://kerberizedhdfs1:9000 + hdfs://kerberizedhdfs1:9010