I am currently using Ubuntu 12.04 with Hadoop 1.0.3. I recently downloaded sqoop manually and gave the path in /etc/environment. But my terminal say 'sqoop: command not found'. Anyone has any idea?
execute echo $PATH to see the directories in which Linux searches for executed binaries. You should see the bin sub-directory of your sqoop installation folder in this path. For example, if you've installed to /usr/local/sqoop, your path should contain /usr/local/sqoop/bin.
If you do not see this setting, change it wherever you have your $PATH configured, e.g. in .bash_profile if you're using bash.
if you are installing sqoop, normally executables are found in /sqoop/bin/ directory.
could you please check ,if the path specified is correct.
you could also try the absolute path bin/sqoop
Make sure you have these entries in added in ~/.bashrc file
export JAVA_HOME="/usr/local/java/jdk1.7.0_71"
export PATH="$PATH:$JAVA_HOME/bin"
export SQOOP_HOME="/home/abhisr/sqoop-1.99.5-bin"
export PATH="$PATH:$SQOOP_HOME/bin"
Related
Trying to get the sidekick image built and having some issues. Is there any documentation other than the README.md file?
My current problem is with getting the JRE requirement working but there are others. The page says "download Oracle JRE and place it inside the working directory. Optionally if you have a company wide distribution url, use that one at a later step." and the help says "Java (JRE) download url or path inside working directory". Have not been able to get this to work.
I went to the JRE link provided and was presented with options to download a rpm file or a tar.gz file. Which is expected (was unable to get either one working)?
It says to place the file in the "working directory" but not sure where exactly. Tried in sidekick folder and in sidekick/jre both without success no matter what I used after the -j command. Is this just the path or should the filename be included as well? Can I get an example?
I'm running this script using my login but noticed the output folder is being created with root user and group. I see no indication that this should be run with sudo. What is the correct way to run this script?
Using debug, I see the function "download if not cached". Can I save these files (JRE, Bamboo jar file, etc.) somewhere so I don't have to worry about downloading them? If so, where should they go? Looks like I might have a problem with the wget to d/l the jar file so would like to just be able to place all these in a folder and be done with it.
It looks like the major problem is the script didn't clean up after itself if it fails. The issue was the first time it failed then that caused subsequent issues as the output folder was already there. Removing this directory between each attempt help.
As for the correct syntax for the -j JRE option I manually downloaded the JRE and placed in a folder called per-build-container/sidekick/stuff/. For the command line it is not just the path but the file name as well (the tar.gz and not the RPM). For my case it was
-j stuff/jre-8u251-linux-x64.tar.gz
Note I also ran the script as sudo. Wasn't stated but seemed to work OK.
Another issue I ran into was the download of the agent jar file. There is a redirect in the wget file that was not working for us. I ended up editing the script and replacing the Altassian based url with the redirected one.
This addresses all the issues I ran into with the initial question.
I'm following this tutorial to setup a Redis server:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis
and getting this error message:
Mmmmm... the default config is missing. Did you switch to the utils directory?
I'm in the /utils directory, but there doesn't appear to be a default config. From the documentation I've read online, it seems like the config should have been created upon setup. Is this something I have to make manually or is this an installation error? My 'make test' command ran successfully, so I don't know why the config file wouldn't have been set up automatically.
If you're on WSL (Windows Subsystem for Linux), you can get this error if you put your Redis folder somewhere that has a path name containing whitespace.
So, like if you put it in the "Program Files" folder. I migrated mine out to just the C:\ drive (or /mnt/c/ for WSL), and it worked just fine.
Had to manually copy default config from the dir above into the correct dir.
I'm a complete novice at using the terminal. What I've trying to do is install Apache Maven, following these instructions at this website:
http://maven.apache.org/download.cgi
I've included the instructions below, a screenshot showing the folder I've unzipped, and the commands I entered into the terminal.
But it doesn't seem to be working
Typically JAVA_HOME is not installed in /usr/java by default like on some other UNIX/Linux such as Fedora for example.
On OSX, your Java installation is typically inside a sub-folder of /System/Library/Java/JavaVirtualMachines/.
Try setting JAVA_HOME like this:
export JAVA_HOME=$(/usr/libexec/java_home)
Double-check your JAVA_HOME location
echo $JAVA_HOME
Does SQLite have a command which displays what directory I am working in on the command line?
Also, how to change work directory there?
sqlite3 does have the concept of a current directory (although it is "deferring" to the underlying shell); otherwise it wouldn't have a .cd DIRECTORY command.
To mimic pwd you can use:
sqlite> .shell pwd
/Users/brad/
The syntax is .shell CMD ARGS..., which allows you to
Run CMD ARGS... in a system shell
To change the directory, use .cd:
sqlite> .cd /Users/yourname/directory/
The .cd command was added in version 3.20.0 (released 2017-08-01).
.shell cd can help you to show the current directory.
For changing the directory, you are gonna need to set it up at the beginning.
Yes, in addition to .cd you can also type ls in your terminal to show the directory you're working on and its contents
I'm running a java application that we distribute as a server-side system. I'm trying to write a launcher ("write" is somewhat of an overstatement here, I'm basically just copying the Java.exe file so that we can get the desired name in the process explorer of windows). This exe is in our bin/ directory of our application file tree.
Now, we also have a jre/ directory in our file tree, which is where Java.exe actually resides (we ship our product with the Java environment). When I use Java.exe as the launcher, which is located in \jre\jre1.6.0_21\bin, or if I place the copy (call this exectuable 'Orange.exe') I made in this directory, it works just fine. But, if I put my 'Orange.exe' in the bin\ directory, then I get the following error:
Error: no 'server' JVM at 'C:\Program Files\Java\jre6\bin\server\jvm.dll'
I think I understand what is happening here - I want to use the server version of the jvm.dll file, which is in our jre directory. The problem is, I don't understand WHY it doesn't look in the jre\jre1.6.0_21 directory in my application path. I've set my JAVA_HOME environment variable to this location. It seems like it's defaulting to another, system-wide expected location.
Does anyone know how I can change this, so that it looks in my application-provided java environment directory? Ideally, this will be an environment variable, as I need to call this application with parameters using a batch file.
There is a little trick to get the server JVM up and running:
Copy "server" folder from the JDK's JRE's bin folder example: C:\Program Files\Java\jdk1.6.0\jre\bin\server
Paste the "server" folder to JRE's bin folder example: C:\Program Files\Java\jre1.6.0\bin
Done
See official readme for details.
I've just been struggling with this same problem in Eclipse and I noted that as suggested by the answer above the JBoss site has a thread on this issue saying the same as the answer above to copy files from the jdk to the jre folder.
I noticed that you can avoid having to do this if you define the runtime to be the jdk when you create the server. I didn't find how to edit an existing server though.
AFAIK, the JRE usually doesn't ship with a server VM (only the client VM). If you really need the server VM, you have to use the JDK installation.
See Oracle Java for Developers Download page for JRE's with Server VM.
I had the same problem here but, in my case, I just had not properly update the JAVA_HOME and my PATH for my recently installed JDK.
I just updated it to my new JDK location and the server started just fine.
Windows looks for DLLs in LIBPATH environment variable.
And make sure your 1.6.0_21 is somewhere first in PATH.
I solved the same problem by setting the JAVA_HOME path to C:\Program Files (x86)\Java\jre1.8.0_131\bin
The easiest fix is simply to copy the contents of client folder inside bin and put in a newly created folder 'server' inside bin.
Copy from C:\Program Files (x86)\Java\jre1.8.0_261\bin\client
Paste in C:\Program Files (x86)\Java\jre1.8.0_261\bin\server
*server is the new folder
Make sure that server/jvm.dll file must be there when we are trying to run servers like servicemix.
Copy "server" folder from the JDK's JRE's bin folder example: C:\Program Files\Java\jdk1.6.0\jre\bin\server
Paste the "server" folder to JRE's bin folder example: C:\Program Files\Java\jre1.6.0\bin
I paced problem, I went through above..That's working fine.
Thanks!