Skip to content

Commit

Permalink
chore: add attachable network
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelePasini committed Mar 4, 2025
1 parent 8b682b3 commit af95550
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
28 changes: 22 additions & 6 deletions dataplatform/multiple_stacks/HDFS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
namenode1:
image: apache/hadoop:${HADOOPVERSION}
ports:
- ${NAMENODE1PORT}:${NAMENODE1PORT}
- ${NAMENODE1PORT_EXT}:${NAMENODE1PORT}
volumes:
- namenode1_data:${NAMEDIR}
- namenode1_config:${HADOOPCONFDIR}
Expand Down Expand Up @@ -42,12 +42,13 @@ services:
- node.hostname != CB-Mass-Node1
- node.labels.running_namenode2==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

namenode2:
image: apache/hadoop:${HADOOPVERSION}
ports:
- ${NAMENODE2PORT}:${NAMENODE2PORT}
- ${NAMENODE2PORT_EXT}:${NAMENODE2PORT}
volumes:
- namenode2_data:${NAMEDIR}
- namenode2_config:${HADOOPCONFDIR}
Expand All @@ -73,7 +74,8 @@ services:
- node.hostname != CB-Mass-Node1
- node.labels.running_namenode1==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

journal1:
image: apache/hadoop:${HADOOPVERSION}
Expand All @@ -96,6 +98,7 @@ services:
- node.labels.running_journal3==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

journal2:
image: apache/hadoop:${HADOOPVERSION}
Expand All @@ -117,7 +120,8 @@ services:
- node.labels.running_journal1==0
- node.labels.running_journal3==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

journal3:
image: apache/hadoop:${HADOOPVERSION}
Expand All @@ -140,6 +144,7 @@ services:
- node.labels.running_journal1==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode1:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -174,6 +179,7 @@ services:
- node.labels.running_namenode2==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode2:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -208,6 +214,7 @@ services:
- node.labels.running_namenode2==0
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode3:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -243,6 +250,7 @@ services:

networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode4:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -277,6 +285,7 @@ services:
- node.hostname != isi-bigcluster-pnnr-12
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode5:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -311,6 +320,7 @@ services:
- node.hostname != isi-bigcluster-pnnr-12
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode6:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -345,6 +355,7 @@ services:
- node.hostname != isi-bigcluster-pnnr-12
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode7:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -379,6 +390,7 @@ services:
- node.hostname != isi-bigcluster-pnnr-12
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode8:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -412,6 +424,7 @@ services:
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

datanode9:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -445,7 +458,7 @@ services:
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network

- BIG-dataplatform-attachable-network
volumes:
namenode1_config:
driver_opts:
Expand Down Expand Up @@ -507,3 +520,6 @@ networks:
BIG-dataplatform-network:
external: true
name: BIG-dataplatform-network
BIG-dataplatform-attachable-network:
external: true
name: BIG-dataplatform-attachable-network
11 changes: 8 additions & 3 deletions dataplatform/multiple_stacks/spark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

spark-worker:
image: apache/spark:${SPARKVERSION}
Expand All @@ -44,7 +45,7 @@ services:
constraints:
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network
- BIG-dataplatform-network

spark-history-server:
image: apache/spark:${SPARKVERSION}
Expand Down Expand Up @@ -73,15 +74,16 @@ services:
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network

- BIG-dataplatform-attachable-network

volumes:
spark_config:
driver: local
driver_opts:
type: nfs
o: addr=${NFSADDRESS},rw,nfsvers=4,nolock,hard
device: ":${NFSPATH}/dataplatform_config/spark_conf/"

hadoop_config:
driver: local
driver_opts:
Expand All @@ -93,3 +95,6 @@ networks:
BIG-dataplatform-network:
external: true
name: BIG-dataplatform-network
BIG-dataplatform-attachable-network:
external: true
name: BIG-dataplatform-attachable-network
10 changes: 7 additions & 3 deletions dataplatform/multiple_stacks/yarn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ services:
- node.role == manager
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network
- BIG-dataplatform-network
- BIG-dataplatform-attachable-network

nodemanager:
image: apache/hadoop:${HADOOPVERSION}
Expand Down Expand Up @@ -56,8 +57,8 @@ services:
- node.role == worker
- node.hostname != CB-Mass-Node1
networks:
- BIG-dataplatform-network

- BIG-dataplatform-network
- BIG-dataplatform-attachable-network
volumes:
hadoop_historyserver:
driver_opts:
Expand All @@ -76,3 +77,6 @@ networks:
BIG-dataplatform-network:
external: true
name: BIG-dataplatform-network
BIG-dataplatform-attachable-network:
external: true
name: BIG-dataplatform-attachable-network

0 comments on commit af95550

Please sign in to comment.