HBASE_HOME is null and cause “Could not locate executable null\bin\winutils.exe in the Hadoop binaries” error - unix

I try to run HBase in windows. And got this error
I search and find some answer
a)download winutils and paste it to the bin directory but error still be there.
b)set HADOOP_HOME , but I don’t know how I must set HADOOP_HOME or HBASE_HOME.
How I can fix this error?

i solve the problem by set an environment variable as HADOOP_HOME and add path of hadoop root as it's path.
and use hbase-094.27 instead hbase-2.6 and it run without any error.

Related

Error reading or writing history file in PowerShell on Linux

I've just had PS 7.0.2 installed on 2x boxes running RHEL 7.x (maipo). Oddly enough, one of them is showing the following error
$ pwsh
PS /home/user_name> dir
Error reading or writing history file '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt': Access to the path '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt' is denied
PS /home/user_name> exit
Error reading or writing history file '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt': Access to the path '/home/user_name/.local/share/powershell/PSReadLine/Console_history.txt' is denied
This error will not be reported again in this session. Consider using a different path with:
Set-PSReadLineOption -HistorySavePath <Path>
Or not saving history with:
Set-PSReadLineOption -HistorySaveStyle SaveNothing
I can't figure out why. All I did was download the RPM and install it. And both the boxes are practically copies of each other :(
Any suggestions?
Err .. just figured it out. It was an errant umask setting overriding the default in my ~/.bashrc.
Commenting it out solved the problem.

How to troubleshoot Error: Could not find package root?

I am running the command: devtools::use_testthat()
and I get the error:
Error: Could not find package root.
Why this happens?
devtools appears now to require the user to setwd("~/path/to/package"), even if functions like devtools::release() have the pkg= parameter set correctly.
My problem was very similar, but running devtools::document(setwd(...)). The only thing that worked for me:
I copied the DESCRIPTION file from another package (https://github.com/filipezabala/voice);
I ran devtools::document(setwd(...)) again;
After that, I edited the DESCRIPTION file and ran again devtools::document(setwd(...)).

Getting this error when compiling in theos

This is the error here:
http://i.imgur.com/tDwiXod.jpg
Any ideas? I have no idea what the error means
It seems like your theos tool is either not installed correctly or not in the path it expects it to be or your environment variable that points to it is not set correctly. You are also trying to compile as root which is problematic. You should be compiling as 'mobile' user and only use root while installing theos.
Type "echo $THEOS" (without quotes) to see if that environment variable is even set. It should point to somewhere like /opt/theos

Trouble setting Environment variable ORACLE_HOME

I have a fresh installation of Oracle 11g client.
I am having trouble using tnsping. It is giving an error:
Message 3511 not found; No message file for product=NETWORK, facility=TNSTNS-0
05: Message 3505 not found; No message file for product=NETWORK, facility=TNS
I have set the Environment variable for ORACLE_HOME as follows:
D:\oracle\product\11.2.0\client_1\BIN
I am not sure what should be exact path for ORACLE_HOME .
How to identify what is the exact path for ORACLE_HOME directory?
Is it D:\oracle\product\11.2.0\client_1 ? or D:\oracle\product\11.2.0\client_1\BIN
Any suggestions or solutions ?
Your ORACLE_HOME should be D:\oracle\product\11.2.0\client_1, assuming that is where you installed the software. The BIN directory under it should be in PATH.
Read more about ORACLE_HOME
The value should be set in the registry by the installer, along with other environment variables that have to be set manually in Unix.
also just had this issue on a server, the oracle install seemed to have got a bit screwed, reinstalled, still same error, then discovered an erroneous space at the front of the env variable, space removed, server rebooted, all good again
run > rededit > HKEY_LOCAL_MACHINE>SOFTWARE > ORACLE> KEY_OraClient19Home1
and Edit the following
ORACLE_HOME browse to the folder where all the files are located(ASP.NET,bin etc)
you should be good to go!

R script from command line

I wanted to run this example script: http://mazamascience.com/WorkingWithData/?p=912 from Windows command line. So I opened the command line and typed Rscript tryCatch.R 1. However, I keep getting the error message Error: R not found. I did set the PATH environment variable as C:\Programme\R\R-3.0.1\bin. If I just type R.exe, it does start R, but it cannot find the packages that are to be loaded at start (e.g. package 'utils' in options<"defaultPackages"> was not found). I guess I have to set another path to the libraries somewhere, but I haven't got any idea where to do this.
UPDATE: After explicitly typing PATH C:\Programme\R\R-3.0.1\bin (rather than just adding this to the value of the environment variable PATH) it seems that R is found. However, a new problem occurs: In normalizePath<path.expand(path), winslash, mustWork>: path[2] = "C:/Programme/R/R-3.0.1/library": Access denied, the same than for the methods library. Then: Calls: .First ... library -> .getRequiredPackages2 -> library -> normalizePath Execution stopped. I'm using Windows 7 and I do have administrator rights.
Rscript is very handy (R CMD BATCH is the old way to ) specially under windows, But generally under I create a batch file to avoid all path's headache.
For example say launcher.bat:
#echo off
C:
PATH C:\Programme\R\R-3.0.1\bin;%path%
cd PATH_TO_YOUR_RSCRIPT
Rscript tryCatch.R 1
pause
And open a console(using cmd) , go where you have stored your launcher.bat and launch it. Or from the R cosnole using shell:
shell('path_to_launcher\launcher.bat')
I've found out that it was a language-specific problem on Windows 7, similar to what is described here: https://stat.ethz.ch/pipermail/r-help/2011-May/276932.html
After changing PATH to C:\Program Files\R\R-3.0.1\bin the script is properly executed from the command prompt.
Thanks to everyone who tried to help!
I ran into this problem under windows 7, apparently, when setting environment variables>user variables the path is not added into the PATH, so the user must add this path in system variables > PATH
at the end just add the path to your .EXE files and voila.

Resources