GuzikJakub commented on a change in pull request #4715: [AIRFLOW-3894] 
unstructured connection to webhdfs
URL: https://github.com/apache/airflow/pull/4715#discussion_r269122044
 
 

 ##########
 File path: airflow/hooks/webhdfs_hook.py
 ##########
 @@ -55,14 +55,22 @@ def get_conn(self):
         for nn in nn_connections:
             try:
                 self.log.debug('Trying namenode %s', nn.host)
-                connection_str = 'http://{nn.host}:{nn.port}'.format(nn=nn)
+                connection_str = self.connection_url(
+                    'http://',
 
 Review comment:
   Finally, we get a connection like we should, for example:
   url = 'http://host:port;http://host:port'

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to