New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/hadoop: add hadoop module (hdfs, yarn) #41381
Conversation
just realized that the NixOS tests only works in Hadoop 3.0 onwards. I originally cherry-picked this PR from #40712 (which is Hadoop 3.1.0) Hadoop 3.0.0 changed the default ports in HDFS and YARN. |
2a0cedb
to
35eaaf8
Compare
35eaaf8
to
b2b6ce5
Compare
@GrahamcOfBorg test hadoop.hdfs |
@GrahamcOfBorg test hadoop.yarn |
b2b6ce5
to
db8a42d
Compare
@GrahamcOfBorg test hadoop.yarn hadoop.hdfs |
Success on aarch64-linux Attempted: tests.hadoop.yarn, tests.hadoop.hdfs No partial log is available. |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: tests.hadoop.yarn, tests.hadoop.hdfs Partial log (click to expand)
|
@GrahamcOfBorg test hadoop.yarn |
Success on aarch64-linux Attempted: tests.hadoop.yarn No partial log is available. |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: tests.hadoop.yarn Partial log (click to expand)
|
@GrahamcOfBorg test hadoop.hdfs |
Success on aarch64-linux Attempted: tests.hadoop.hdfs No partial log is available. |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: tests.hadoop.hdfs Partial log (click to expand)
|
Looks like there is an odd eval error. Does the test run locally> |
let me check on the fresh rebase. it was building locally before |
db8a42d
to
14ecd77
Compare
@matthewbauer it should evaluate now |
@GrahamcOfBorg test hadoop.yarn hadoop.hdfs |
Success on aarch64-linux Attempted: tests.hadoop.yarn, tests.hadoop.hdfs No partial log is available. |
Failure on x86_64-linux (full log) Attempted: tests.hadoop.yarn, tests.hadoop.hdfs Partial log (click to expand)
|
14ecd77
to
0c10b2b
Compare
@matthewbauer I think i fixed the last missing part of my rebase. tests should pass now. |
@GrahamcOfBorg test hadoop.yarn hadoop.hdfs |
Success on aarch64-linux Attempted: tests.hadoop.yarn, tests.hadoop.hdfs No partial log is available. |
Success on x86_64-linux (full log) Attempted: tests.hadoop.yarn, tests.hadoop.hdfs Partial log (click to expand)
|
In fff5923 all occurences of users.extraUsers and users.extraGroups have been changed tree-wide to users.users and users.group. In the meantime the hadoop modules were introduced via #41381 (060a98e). Unfortunately those modules still use users.extraUsers, which has been renamed a long time ago (14321ae, about three years from now), so let's actually rename it accordingly as well. Signed-off-by: aszlig <aszlig@nix.build> Cc: @matthewbauer, @aespinosa
|
||
config = mkMerge [ | ||
(mkIf (builtins.hasAttr "yarn" config.users.extraUsers || | ||
builtins.hasAttr "hdfs" config.users.extraUsers ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aespinosa: How come this is still using extraUsers
/extraGroups
? Do we have some outdated documentation somewhere we need to fix?
Motivation for this change
Create initial Hadoop modules: HDFS and YARN. Enough to make a small working Hadoop cluster.
The modules are currently minimal that it doesn't include other HDFS, YARN or MapReduce components to make it "production-ish"
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)