Prepares the environment and connects to Postgres and Impala running inside the Docker container.
(self)
| 92 | return result |
| 93 | |
| 94 | def prepare(self): |
| 95 | '''Prepares the environment and connects to Postgres and Impala running inside the |
| 96 | Docker container. |
| 97 | ''' |
| 98 | LOG.info('Starting Job Preparation') |
| 99 | self.impala_env.prepare() |
| 100 | LOG.info('Job Preparation Complete') |
| 101 | |
| 102 | self.ref_connection = PostgresqlConnection( |
| 103 | user_name=POSTGRES_USER_NAME, |
| 104 | password=None, |
| 105 | host_name=self.impala_env.host, |
| 106 | port=self.impala_env.postgres_port, |
| 107 | db_name=POSTGRES_DATABASE_NAME) |
| 108 | LOG.info('Created ref_connection') |
| 109 | |
| 110 | self.start_impala() |
| 111 | |
| 112 | self.git_hash = self.impala_env.get_git_hash() |
| 113 | |
| 114 | def get_stack(self): |
| 115 | stack_trace = self.impala_env.get_stack() |
no test coverage detected