我只是下载并安装hadoop,请参见下面的终端输出:
steven81@steven81-HP:/usr/local/hadoop-3.0.3/bin$ ls -l
total 844
-rwxr-xr-x 1 steven81 steven81 366296 6月 1 01:25 container-executor
-rwxr-xr-x 1 steven81 steven81 8261 6月 1 01:13 hadoop
-rwxr-xr-x 1 steven81 steven81 10944 6月 1 01:13 hadoop.cmd
-rwxr-xr-x 1 steven81 steven81 10850 6月 1 01:15 hdfs
-rwxr-xr-x 1 steven81 steven81 8081 6月 1 01:15 hdfs.cmd
-rwxr-xr-x 1 steven81 steven81 5704 6月 1 01:27 mapred
-rwxr-xr-x 1 steven81 steven81 6311 6月 1 01:27 mapred.cmd
-rwxr-xr-x 1 steven81 steven81 403256 6月 1 01:25 test-container-executor
-rwxr-xr-x 1 steven81 steven81 10721 6月 1 01:25 yarn
-rwxr-xr-x 1 steven81 steven81 12840 6月 1 01:25 yarn.cmd
steven81@steven81-HP:/usr/local/hadoop-3.0.3/bin$ hadoop
hadoop: command not found
那为什么我会收到指示未找到hadoop命令的错误?
我该如何解决?
答案 0 :(得分:0)
您需要编辑PATH变量以在其中包含bin目录
否则,必须从该目录完全像erl_crash_dump:0.5
Sat Jun 23 09:17:30 2018
Slogan: init terminating in do_boot ({error,{no such file or directory,asn1.app}})
System version: Erlang/OTP 20 [erts-9.3.3] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:384] [hipe] [kernel-poll:true]
Compiled: Tue Jun 19 22:25:03 2018
Taints: erl_tracer,zlib
Atoms: 14794
Calling Thread: scheduler:2
=scheduler:1
Scheduler Sleep Info Flags: SLEEPING | TSE_SLEEPING | WAITING
Scheduler Sleep Info Aux Work:
Current Port:
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: OUT_OF_WORK | HALFTIME_OUT_OF_WORK
Current Process:
=scheduler:2
Scheduler Sleep Info Flags:
Scheduler Sleep Info Aux Work: THR_PRGR_LATER_OP
Current Port:
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: OUT_OF_WORK | HALFTIME_OUT_OF_WORK | NONEMPTY | EXEC
Current Process: <0.0.0>
Current Process State: Running
Current Process Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING | TRAP_EXIT | ON_HEAP_MSGQ
Current Process Program counter: 0x00007fbd81fa59c0 (init:boot_loop/2 + 64)
Current Process CP: 0x0000000000000000 (invalid)
那样运行命令
一些示例将显示Failed: context.getThemeContext is not a function
TypeError: context.getThemeContext is not a function
at ComponentWithContext.getChildContext
,它作为绝对路径转换为./hadoop