-
Notifications
You must be signed in to change notification settings - Fork 5
20210511 zrq hdfs transfers and data shares #482
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
af5502b
Added notes on HDFS transfer
Zarquan 26f1d61
Created share and transferring data ..
Zarquan ebaa511
Notes on testing EDR3-2048
Zarquan 63ee1b4
Added share for GEDR3-2048
Zarquan 214a6fc
Custom small node deploy
Zarquan 14967cd
Update Ceph mount scripts to accept host names parameter
Zarquan b239d09
Testing the new data share config
Zarquan 711837a
Added new shares and links, added prefix to data share names
Zarquan 9789ebb
Added new shares and links, added prefix to data share names
Zarquan a364f63
Notes on fetching PR changes from GitHub
Zarquan 8e4cfb5
Rough notes on resource limits
Zarquan 61d4120
Notes on housekeeping and data shares
Zarquan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ | |
| # </meta:header> | ||
| # | ||
|
|
||
| shares: | ||
| usershares: | ||
|
|
||
| - id: "nch" | ||
| sharename: "aglais-user-nch" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/bin/sh | ||
| # | ||
| # <meta:header> | ||
| # <meta:licence> | ||
| # Copyright (c) 2021, ROE (http://www.roe.ac.uk/) | ||
| # | ||
| # This information is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU General Public License as published by | ||
| # the Free Software Foundation, either version 3 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # This information is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| # </meta:licence> | ||
| # </meta:header> | ||
| # | ||
| # | ||
|
|
||
| - name: "Create data links" | ||
| hosts: zeppelin:workers | ||
| gather_facts: false | ||
| vars_files: | ||
| - config/ansible.yml | ||
| - /tmp/ansible-vars.yml | ||
| - /deployments/common/manila/datashares.yaml | ||
|
|
||
| tasks: | ||
|
|
||
| - name : "Linking data directories" | ||
| include_tasks: "tasks/create-linked.yml" | ||
| vars: | ||
| linkpath: "{{item.linkpath}}" | ||
| linkdest: "{{item.linkdest}}" | ||
| loop: | ||
| "{{ datalinks }}" | ||
|
|
||
|
|
||
|
|
172 changes: 172 additions & 0 deletions
172
deployments/hadoop-yarn/ansible/config/zrq-dev-small.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,172 @@ | ||
| # | ||
| # <meta:header> | ||
| # <meta:licence> | ||
| # Copyright (c) 2020, ROE (http://www.roe.ac.uk/) | ||
| # | ||
| # This information is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU General Public License as published by | ||
| # the Free Software Foundation, either version 3 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # This information is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| # </meta:licence> | ||
| # </meta:header> | ||
| # | ||
| # | ||
|
|
||
| all: | ||
|
|
||
| vars: | ||
|
|
||
| # Hadoop vars | ||
|
|
||
| hdname: "hadoop-3.1.3" | ||
| hdbase: "/opt" | ||
| hdhome: "/opt/hadoop" | ||
|
|
||
| hdconf: "{{hdhome}}/etc/hadoop" | ||
| hdhost: "master01" | ||
| hduser: "fedora" | ||
|
|
||
| # HDFS vars | ||
|
|
||
| hdfsconf: "/var/hdfs/conf" | ||
| hdfsuser: "fedora" | ||
|
|
||
| # Spark vars | ||
| spname: "spark-2.4.7" | ||
| spfull: "spark-2.4.7-bin-hadoop2.7" | ||
| spbase: "/opt" | ||
| sphome: "/opt/spark" | ||
| sphost: "master01" | ||
| spuser: "fedora" | ||
|
|
||
| sparkconfig: | | ||
|
|
||
| # https://spark.apache.org/docs/latest/configuration.html | ||
| # https://spark.apache.org/docs/latest/running-on-yarn.html | ||
| # https://stackoverflow.com/questions/37871194/how-to-tune-spark-executor-number-cores-and-executor-memory | ||
|
|
||
| # Amount of memory to use for the driver process (where SparkContext is initialized). | ||
| # (small zeppelin node has 22G memory) | ||
| spark.driver.memory 10g | ||
| # Limit of total size of serialized results of all partitions for each Spark action. | ||
| # Setting a proper limit can protect the driver from out-of-memory errors. | ||
| spark.driver.maxResultSize 8g | ||
|
|
||
| # Amount of memory to use for the YARN Application Master | ||
| # (default 512m) | ||
| #spark.yarn.am.memory 512m | ||
| # Number of cores to use for the YARN Application Master in client mode. | ||
| # (default 1) | ||
| #spark.yarn.am.cores 1 | ||
|
|
||
| # The number of cores to use on each executor. | ||
| # (small worker node has 6 cores) | ||
| spark.executor.cores 3 | ||
| # Amount of memory to use per executor process. | ||
| # (small worker node has 22G memory and 6 cores) | ||
| # (22G - 512M)/2 | ||
| # ((22 * 1024)-512)/2 | ||
| spark.executor.memory 11008m | ||
|
|
||
| # The number of executors for static allocation. | ||
| # 8w * 2 | ||
| spark.executor.instances 16 | ||
|
|
||
| # Zeppelin vars | ||
| zepname: "zeppelin-0.8.2" | ||
| zepbase: "/home/fedora" | ||
| zephome: "/home/fedora/zeppelin-0.8.2-bin-all" | ||
| zephost: "zeppelin" | ||
| zepuser: "fedora" | ||
|
|
||
| hosts: | ||
|
|
||
| zeppelin: | ||
| login: 'fedora' | ||
| image: 'Fedora-30-1.2' | ||
| flavor: 'general.v1.small' | ||
| discs: | ||
| - type: 'cinder' | ||
| size: 512 | ||
| format: 'btrfs' | ||
| mntpath: "/mnt/cinder/vdb" | ||
| devname: 'vdb' | ||
| paths: | ||
| # Empty on Zeppelin, master, worker | ||
| hddatalink: "/var/hadoop/data" | ||
| hddatadest: "/mnt/local/vda/hadoop/data" | ||
| # Empty on Zeppelin | ||
| hdtemplink: "/var/hadoop/temp" | ||
| hdtempdest: "/mnt/local/vda/hadoop/temp" | ||
| # Empty on Zeppelin | ||
| hdlogslink: "/var/hadoop/logs" | ||
| hdlogsdest: "/mnt/local/vda/hadoop/logs" | ||
| # Used on Zeppelin | ||
| sptemplink: "/var/spark/temp" | ||
| sptempdest: "/mnt/cinder/vdb/spark/temp" | ||
|
|
||
| children: | ||
|
|
||
| masters: | ||
| hosts: | ||
| master[01:01]: | ||
| vars: | ||
| login: 'fedora' | ||
| image: 'Fedora-30-1.2' | ||
| flavor: 'general.v1.tiny' | ||
| discs: [] | ||
| paths: | ||
| # Empty on Zeppelin, master, worker | ||
| hddatalink: "/var/hadoop/data" | ||
| hddatadest: "/mnt/local/vda/hadoop/data" | ||
| # Used on master | ||
| # /var/hadoop/temp/dfs/namesecondary/current/ | ||
| hdtemplink: "/var/hadoop/temp" | ||
| hdtempdest: "/mnt/local/vda/hadoop/temp" | ||
| # Used on master | ||
| hdlogslink: "/var/hadoop/logs" | ||
| hdlogsdest: "/mnt/local/vda/hadoop/logs" | ||
| # Used on master | ||
| # /var/hdfs/meta/namenode/fsimage/current/ | ||
| hdfsmetalink: "/var/hdfs/meta" | ||
| hdfsmetadest: "/mnt/local/vda/hadoop/meta" | ||
|
|
||
| workers: | ||
| hosts: | ||
| worker[01:06]: | ||
| vars: | ||
| login: 'fedora' | ||
| image: 'Fedora-30-1.2' | ||
| flavor: 'general.v1.small' | ||
| discs: | ||
| - type: 'cinder' | ||
| size: 512 | ||
| format: 'btrfs' | ||
| mntpath: "/mnt/cinder/vdb" | ||
| devname: 'vdb' | ||
| paths: | ||
| # Empty on Zeppelin, master, worker | ||
| hddatalink: "/var/hadoop/data" | ||
| hddatadest: "/mnt/local/vda/hadoop/data" | ||
| # Used on workers | ||
| # /var/hadoop/temp/nm-local-dir/ | ||
| hdtemplink: "/var/hadoop/temp" | ||
| hdtempdest: "/mnt/local/vda/hadoop/temp" | ||
| # Used on worker | ||
| hdlogslink: "/var/hadoop/logs" | ||
| hdlogsdest: "/mnt/local/vda/hadoop/logs" | ||
| # Workers only, empty | ||
| hdfslogslink: "/var/hdfs/logs" | ||
| hdfslogsdest: "/mnt/local/vda/hdfs/logs" | ||
| # Workers only, used | ||
| hdfsdatalink: "/var/hdfs/data" | ||
| hdfsdatadest: "/mnt/cinder/vdb/hdfs/data" | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
2020 -> 2021
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.
Well caught