mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/hadoop: fix tests for hadoop 2 and 3.2
This commit is contained in:
parent
8aeb60f034
commit
d39056d165
3 changed files with 35 additions and 16 deletions
|
@ -100,7 +100,8 @@ in
|
|||
allowedTCPPorts = [
|
||||
9870 # namenode.http-address
|
||||
8020 # namenode.rpc-address
|
||||
8022 # namenode. servicerpc-address
|
||||
8022 # namenode.servicerpc-address
|
||||
8019 # dfs.ha.zkfc.port
|
||||
];
|
||||
preStart = (mkIf cfg.hdfs.namenode.formatOnInit
|
||||
"${cfg.package}/bin/hdfs --config ${hadoopConf} namenode -format -nonInteractive || true"
|
||||
|
@ -109,10 +110,15 @@ in
|
|||
|
||||
(hadoopServiceConfig {
|
||||
name = "DataNode";
|
||||
allowedTCPPorts = [
|
||||
# port numbers for datanode changed between hadoop 2 and 3
|
||||
allowedTCPPorts = if versionAtLeast cfg.package.version "3" then [
|
||||
9864 # datanode.http.address
|
||||
9866 # datanode.address
|
||||
9867 # datanode.ipc.address
|
||||
] else [
|
||||
50075 # datanode.http.address
|
||||
50010 # datanode.address
|
||||
50020 # datanode.ipc.address
|
||||
];
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue