You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2021/12/01 21:50:41 UTC
[GitHub] [fluo-muchos] zachradtka opened a new pull request #415: Added hadoop 2.10.1 support and azure bug fix
zachradtka opened a new pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415
The Azure python library is needed for `./bin/muchos setup`. And a checksum was added for Hadoop 2.10.1
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] milleruntime commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
milleruntime commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r762035363
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
It seems like the bug fix could be a separate change from hadoop support. Currently #416 is a blocker preventing running of the latest Muchos.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
keith-turner commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761253019
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
> If you want the exact error, I can re-run through my install steps again.
Thanks, but I don't need that. Your description was very helpful.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761238955
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
I was installing on an "existing" cluster.
Per the instructions, you create a virtual environment which should/might create a clean environment without any packages. After creating the virtual env, I ran `pip install -r requirements.txt` from the lib directory. When running `muchos setup` it complained about azure libraries not being present. I fixed this error by doing a `pip install azure`.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761373195
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
@keith-turner I did not run https://github.com/apache/fluo-muchos/blob/main/scripts/install-ansible-for-azure prior to running `muchos setup`.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761553470
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
I'm guessing the error is this:
```
Traceback (most recent call last):
File "/home/centos/work/fluo-muchos/lib/main.py", line 22, in <module>
from muchos.config import DeployConfig
File "/home/centos/work/fluo-muchos/lib/muchos/config/__init__.py", line 20, in <module>
from .azure import AzureDeployConfig
File "/home/centos/work/fluo-muchos/lib/muchos/config/azure.py", line 23, in <module>
from .azurevalidations import validate_azure_configs
File "/home/centos/work/fluo-muchos/lib/muchos/config/azurevalidations.py", line 24, in <module>
from azure.mgmt.compute import ComputeManagementClient
ModuleNotFoundError: No module named 'azure'
```
If so, the reason is [this](https://github.com/apache/fluo-muchos/blob/7decbf3069e592414cfd184b98e424a503c09b6e/lib/muchos/config/__init__.py#L19-L20)
We'll need to think through how to not load the non-required libraries.
Meanwhile, for this PR, my suggestion remains the same - let's not add the reference to the `azure` library when it is not required (i.e. don't add it in requirements.txt). I suggest keeping this PR specific to the Hadoop checksum change, and we can work on the changes / refactoring needed to not require the azure library, separately.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761258430
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
That is correct. I already have the cluster installed and was not using muchos to provision hardware.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761304701
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
@zachradtka - did you run [https://github.com/apache/fluo-muchos/blob/main/scripts/install-ansible-for-azure](./scripts/install-ansible-for-azure)?
That is the recommended way to ensure all the dependencies, including Azure modules for Ansible, are pulled in. That process implicitly installs the `azure` package.
If this was not run, I'd recommend updating the README or such if we have not mentioned this explicitly, but I'd not want to add the azure package to the top-level requirements.txt.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft merged pull request #415: Added Hadoop 2.10.1 support
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft merged pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
keith-turner commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761257175
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
> I was installing on an "existing" cluster.
So you are not using Muchos to provision a cluster (in AWS or Azure), just trying to use it provision software on a cluster you already have? Sorry to restate, I think that is what you mean, just want to make sure I understand your problem.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
keith-turner commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761309913
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
> @zachradtka - did you run https://github.com/apache/fluo-muchos/blob/main/scripts/install-ansible-for-azure?
@arvindshmicrosoft should this have to be run even when someone is not using Azure?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761560398
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
Yup, that is the issue. Sorry I didn't have a chance to run this today. I can run it tomorrow just to confirm.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761225336
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
@zachradtka, it would also be good to know a bit more about the environment where the above issue was detected - the GitHub Actions runner seemed to not require this installed, but that may very well be because other installations (like the Azure CLI) might have provided that package.
Going out on a proverbial limb - originally, we used to install the `ansible[azure]` package, which used to install the required parts of the `azure` package implicitly. Earlier this year when we switched to more current Ansible (core) a possible gap might have been created, which (I'm hypothesizing here) may not come up in the CI (or in local environments) where AZ CLI was also installed.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761374991
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
It is mentioned to run `install-ansible-for-azure` in the readme: https://github.com/apache/fluo-muchos/blob/main/README.md?plain=1#L73-L74, but it is in the Azure subsection. I can move it up to the "Common" subsection. Would that be the correct place to put it?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
keith-turner commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761205651
##########
File path: conf/checksums
##########
@@ -22,6 +22,7 @@ hadoop:3.1.1:f837fe260587f71629aad1f4fb6719274e948111dc96ffc5a8e26f27deac5602
hadoop:3.0.2:0d507aa71007b2685e292343c11c2cb90a92ea7625446b57d1fb47c5721e2f82
hadoop:3.0.3:db96e2c0d0d5352d8984892dfac4e27c0e682d98a497b7e04ee97c3e2019277a
hadoop:2.10.0:76592EFE09CD9887ADB9E058C43D28858B19BCBC829EA1DE3D7F7D2E54E4B37F415984DCAC5F401DEB9C30E69E85B7F3AC29785AC6EB17CD15B7664C731BCD85
+hadoop:2.10.1:2460E02CD1F80DFED7A8981BBC934C095C0A341435118BEC781FD835EC2EBDC5543A03D92D24F2DDEEBDFE1C2C460065BA1D394ED9A73CBB2020B40A8D8B5E07
Review comment:
I double checked the checksum and it looks good.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on pull request #415: Added Hadoop 2.10.1 support
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#issuecomment-987072866
@zachradtka - thanks for the contribution! If you would like to be added as contributor, please create a PR for the [Fluo People webpage](https://github.com/apache/fluo-website/edit/main/pages/people.md).
Apache Fluo tweets about first contributions. If you would like a tweet to be made about this PR, just let us know what your Twitter handle is.
Lastly, if you'd like to, consider subscribing to the [Fluo dev list](https://fluo.apache.org/contactus/). Feel free to then send a brief email to introduce yourself to the community. Thanks again!
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r763252422
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
@keith-turner if you are good with the PR, would you like to resolve these 2 comments? I have approved the PR, with a second vote, we can merge.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r762041507
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
I have updated this PR to just include support for Hadoop 2.10.1
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
keith-turner commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761208417
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
What problem were you seeing that this fixed? Curious if a muchos command was failing and if so what error you saw.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761544934
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
Oh wait - I missed the part about you running on an `existing` cluster. It should not then need the `azure` package at all, and my steps about the Azure pre-requisites should not be needed.
@zachradtka - if it is not too much to ask, it would be really helpful to get the original error to diagnose what is going on here. Clearly, some Azure specific module was invoked when it should not have been invoked.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r762047297
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
Thanks - I raised #417 to address the `azure` package issue.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] zachradtka commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
zachradtka commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761239532
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
If you want the exact error, I can re-run through my install steps again.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761304701
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
@zachradtka - did you run [https://github.com/apache/fluo-muchos/blob/main/scripts/install-ansible-for-azure](https://github.com/apache/fluo-muchos/blob/main/scripts/install-ansible-for-azure)?
That is the recommended way to ensure all the dependencies, including Azure modules for Ansible, are pulled in. That process implicitly installs the `azure` package.
If this was not run, I'd recommend updating the README or such if we have not mentioned this explicitly, but I'd not want to add the azure package to the top-level requirements.txt.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] milleruntime commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
milleruntime commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r762034097
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
I just opened a bug for this https://github.com/apache/fluo-muchos/issues/416
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #415: Added hadoop 2.10.1 support and azure bug fix
Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #415:
URL: https://github.com/apache/fluo-muchos/pull/415#discussion_r761584620
##########
File path: lib/requirements.txt
##########
@@ -2,3 +2,4 @@ flake8==3.8.0
ansible-core==2.11.3
ansible-lint==5.1.2
nose==1.3.7
+azure==4.0.0
Review comment:
NP - I am including a patch below which will address the "importing" issue. Feel free to leverage the same in this PR if you like, or LMK if you'd prefer that I raise another PR with the below changes. In either case, you can reset your change to requirements.txt.
```
diff --git a/lib/muchos/config/__init__.py b/lib/muchos/config/__init__.py
index 99a88b5..27ba8f4 100644
--- a/lib/muchos/config/__init__.py
+++ b/lib/muchos/config/__init__.py
@@ -15,10 +15,6 @@
# limitations under the License.
#
-from .existing import ExistingDeployConfig
-from .ec2 import Ec2DeployConfig
-from .azure import AzureDeployConfig
-
from configparser import ConfigParser
@@ -35,6 +31,8 @@ def DeployConfig(
cluster_type = c.get("general", "cluster_type")
if cluster_type == "existing":
+ from .existing import ExistingDeployConfig
+
return ExistingDeployConfig(
deploy_path,
config_path,
@@ -45,6 +43,8 @@ def DeployConfig(
)
if cluster_type == "ec2":
+ from .ec2 import Ec2DeployConfig
+
return Ec2DeployConfig(
deploy_path,
config_path,
@@ -55,6 +55,8 @@ def DeployConfig(
)
if cluster_type == "azure":
+ from .azure import AzureDeployConfig
+
return AzureDeployConfig(
deploy_path,
config_path,
diff --git a/lib/tests/azure/test_config.py b/lib/tests/azure/test_config.py
index 69469a3..17ecdc7 100644
--- a/lib/tests/azure/test_config.py
+++ b/lib/tests/azure/test_config.py
@@ -15,7 +15,7 @@
# limitations under the License.
#
-from muchos.config import AzureDeployConfig
+from muchos.config.azure import AzureDeployConfig
def test_azure_cluster():
diff --git a/lib/tests/ec2/test_config.py b/lib/tests/ec2/test_config.py
index 58f1afe..4b620ac 100644
--- a/lib/tests/ec2/test_config.py
+++ b/lib/tests/ec2/test_config.py
@@ -15,7 +15,7 @@
# limitations under the License.
#
-from muchos.config import Ec2DeployConfig
+from muchos.config.ec2 import Ec2DeployConfig
def test_ec2_cluster():
diff --git a/lib/tests/existing/test_config.py b/lib/tests/existing/test_config.py
index 1be2a86..4e2f3d6 100644
--- a/lib/tests/existing/test_config.py
+++ b/lib/tests/existing/test_config.py
@@ -15,7 +15,7 @@
# limitations under the License.
#
-from muchos.config import ExistingDeployConfig
+from muchos.config.existing import ExistingDeployConfig
```
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org