18/11/18 12:30:09 WARN ScriptBasedMapping: Exception running /etc/hadoop/conf/topology_script.py 192.168.33.83 ExitCodeException exitCode=1: File "/etc/hadoop/conf/topology_script.py", line 63 print rack ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(rack)?
at org.apache.hadoop.util.Shell.runCommand(Shell.java:954) at org.apache.hadoop.util.Shell.run(Shell.java:855) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:1163) at org.apache.hadoop.net.ScriptBasedMapping$RawScriptBasedMapping.runResolveComman (snip)
$ sudo diff -u /etc/apt/sources.list{,.2018111701} --- /etc/apt/sources.list 2018-11-17 21:06:52.975641015 +0900 +++ /etc/apt/sources.list.2018111701 2018-11-17 21:06:29.396143241 +0900 @@ -3,20 +3,20 @@ # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://jp.archive.ubuntu.com/ubuntu/ bionic main restricted -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic main restricted +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the ## distribution. deb http://jp.archive.ubuntu.com/ubuntu/ bionic-updates main restricted -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates main restricted +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://jp.archive.ubuntu.com/ubuntu/ bionic universe -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic universe +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic universe deb http://jp.archive.ubuntu.com/ubuntu/ bionic-updates universe -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates universe +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to @@ -24,9 +24,9 @@ ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://jp.archive.ubuntu.com/ubuntu/ bionic multiverse -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic multiverse +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://jp.archive.ubuntu.com/ubuntu/ bionic-updates multiverse -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates multiverse +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes @@ -34,7 +34,7 @@ ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://jp.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse -deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse +# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. @@ -44,8 +44,8 @@ # deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted -deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted +# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://security.ubuntu.com/ubuntu bionic-security universe -deb-src http://security.ubuntu.com/ubuntu bionic-security universe +# deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse -deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse +# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
config.vm.define "hd-01" do |config| config.vm.box = "centos/7" config.vm.network :private_network, ip: "192.168.33.81" config.vm.hostname = "hd-01" end
config.vm.define "hd-02" do |config| config.vm.box = "centos/7" config.vm.network :private_network, ip: "192.168.33.82" config.vm.hostname = "hd-02" end
config.vm.define "hd-03" do |config| config.vm.box = "centos/7" config.vm.network :private_network, ip: "192.168.33.83" config.vm.hostname = "hd-03" end
config.vm.define "hd-04" do |config| config.vm.box = "centos/7" config.vm.network :private_network, ip: "192.168.33.84" config.vm.hostname = "hd-04" end
end
ストレージプールdefaultの不在に関連したエラー
このとき、
1
There was error while creating libvirt storage pool: Call to virStoragePoolDefineXML failed: operation failed: Storage source conflict with pool: 'images'
つづいて、vagrant up --provider=libvirtしようとしたら、以下のエラーが生じた。
1 2 3 4 5 6 7 8
The box 'centos/7' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas, please verify you're logged in via `vagrant login`. Also, please double-check the name. The expanded URL and error message are shown below:
URL: ["https://atlas.hashicorp.com/centos/7"] Error: The requested URL returned error: 404 Not Found
In more recent releases (>= Yakkety) the group was renamed to libvirt. Upgraded systems get a new libvirt group with the same gid as the libvirtd group to match that.
~$ sudo virsh net-dhcp-leases default Expiry Time MAC address Protocol IP address Hostname Client ID or DUID ------------------------------------------------------------------------------------------------------------------- 2018-11-17 03:08:52 52:54:00:b0:68:26 ipv4 192.168.122.193/24 ubuntu1804 ff:32:39:f9:b5:00:02:00:00:ab:11:97:79:8b:63:02:9c:d8:07
$ sudo echo > /etc/default/grub << EOL # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" #GRUB_TERMINAL=serial GRUB_TERMINAL="console serial" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" EOL