I am trying to install Lombok in my Ubuntu 22(latest version) for eclipse.
When I am running command
sudo java -jar lombok.jar
Error shown in Lombok installer
I am running above command by going into Downloads directory because my Lombok jar is there.
My eclipse location is this:-
eclipse.home.location=file:/snap/eclipse/61/
I have also tried going to snap/eclipse directory , moved the Lombok.jar file there with sudo su but that isn't also working.
When I tried this command in sudo su mode:-
cp -R /home/satya123/Downloads/lombok.jar /snap/eclipse/61/
It is giving this error:-
cp: cannot create regular file '/snap/eclipse/61/lombok.jar': Read-only file system
I tried this command so that my eclipse and lombok remains in same directory with root permission but this also not worked.
What should I do?
You can not modify a snap app, they are essentially containerized. You'll need a download from downloads.eclipse.org to be able to modify it with lombok.
Related
I have am using docker-compose along with a Dockerfile to install a connector. I have been successful in installing connectors from Confluent Hub, but not my own jar files.
Here is what I did:
Went to https://search.maven.org/artifact/io.aiven/aiven-kafka-connect-gcs/0.7.0/jar and in the upper right corner, pressed Downloads and clicked on "jar"
Placed this file in the same folder as my Dockerfile
Ran my Dockerfile:
ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components"
USER root
COPY --chown=appuser:appuser aiven-kafka-connect-gcs-0.7.0.jar /usr/share/confluent-hub-components
USER appuser
RUN confluent-hub install --no-prompt aiven/kafka-connect-gcs:0.7.0
I have also tried various confluent-hub install commands, including:
RUN confluent-hub install --no-prompt aiven-kafka-connect-gcs:0.7.0
RUN confluent-hub install --no-prompt confluent-hub-components/aiven-kafka-connect-gcs-0.7.0.jar
RUN confluent-hub install --no-prompt aiven-kafka-connect-gcs-0.7.0.jar
all to no avail. I did try other directories like /etc/kafka-connect/jars and I just keep getting the same issue.
What am I doing wrong? Syntax? Missing additional mounting commands? Something else?
confluent-hub doesn't "install" local JAR files
By default, it uses its arguments to do an HTTP lookup against the Confluent Hub website and return the according response. If it's a valid connector, it'll extract it to the plugin path, otherwise, you'll get an error
If you give it a local ZIP, that will work
path to a local ZIP file that was downloaded from Confluent Hub
This is how I did it:
RUN wget -O /set/your/path/here/<connector name here>.tar https://url-of-connector-here/<connector name and version here>.tar
RUN tar -xvf /set/your/path/here/<connector name here>.tar --directory /path/to/connect/plugins/here/
and it worked.
I downloaded the OpenDaylight Oxygen SR1 Zip file, unzipped the karaf-0.8.1 file, changed my directory to it but when I try to run ./bin/karaf I get:
./bin/karaf: Permission denied
When I try sudo ./bin/karaf I get
sudo: ./bin/karaf: command not found
The weirdest part is that I also have the folder of the previous version, i.e. karaf-0.7.1, in the same Downloads folder and these commands work perfectly fine in there. I would like to use the latest version however. Could anyone help me please?
Edit: Sorry, forgot to mention I'm running it on Mac OS X
On a Unix-like system, you’re better off downloading the tarball: extracting that will give you files with the correct permissions.
In your case, to fix your setup, you need to run
chmod 755 bin/{client,inc,instance,karaf,setenv,set_persistence.sh,shell,start,status,stop}
to restore the permissions as they ship in the tarball.
I am using elasticsearch as a search engine for my website.After I downloaded the elasticsearch I use the command ./bin/elasticsearch
I got an error
org.elasticsearch.bootstrap.StartupException:
java.lang.RuntimeException: can not run elasticsearch as root
I google it and run the command
groupadd esgroup
useradd esuser -g esgroup -p espassword
chown -R esuser:esgroup elasticsearch
and I switch to esuser but I cant cd /root
bash: cd: /root: Permission denied
so I have to switch to root user and stay at /root/elasticsearch/ and change to esuser
then I run the command
./bin/elasticsearch
this time I get a different error
Error: Could not find or load main classorg.elasticsearch.bootstrap.Elasticsearch
I already install java-1.8.0-openjdk-devel and the java -version javac command works
I am using centos6 x64
Is there something I miss?
please download & install the whole elasticsearch zip as a non-root user instead of trying to fiddle with permissions inside of the /root/ directory (where also data & logs are written to).
if you dont want to deal with such things, the easiest way might be to use one of the existing packages.
I tried running spark-1.5.1-bin-hadoop2.6 distribution (and newer versions of Spark with same results) on Windows using Cygwin.
When trying to execute spark-shell script in the bin folder, I get below output:
Error: Could not find or load main class org.apache.spark.launcher.Main
I tried to set CLASSPATH to the location of lib/spark-assembly-1.5.1-hadoop2.6.0.jar but to no avail.
(FYI: I am able to run the same distribution fine on my MAC with no extra setup steps required)
Please assist in finding resolution for Cygwin execution on Windows.
I ran into and solved a similar problem with cywin on Windows 10 and spark-1.6.0.
build with Maven (maybe you're past this step)
mvn -DskipTests package
make sure JAVA_HOME is set to a JDK
$ export JAVA_HOME="C:\Program Files\Java\jdk1.8.0_60"
$ ls "$JAVA_HOME"
bin include LICENSE THIRDPARTYLICENSEREADME.txt ....
use the Windows batch file. Launch from PowerShell or CommandPrompt if you have terminal problems with cygwin.
$ chmod a+x bin/spark-shell.cmd
$ ./bin/spark-shell.cmd
My solution to the problem was to move the Spark installation into a path that didn't have spaces in it. Under Program Files I got the above error, but moving it directly under C:\ and running spark-shell.bat file cleared it up.
I just installed iReport yesterday and it was working fine. But when I try to run it today it is not working properly.
Here is what I have done;
Downloaded iReport-4.0.2
Extracted it in my downloads folder
Try running though terminal
adm#linux:~/Downloads/iReport-4.0.2/bin$ sudo ./ireport
this gives the No protocol specified error in terminal.
adm#linux:~/Downloads/iReport-4.0.2/bin$ ./ireport
without sudo, this show many error messages in terminal and starts iReport. But again shows popup several errors. Still I cannot create or edit reports.
Here are the errors. I can post the output in terminal if needed. But its quite lengthy.
I also tried moving the iReport-4.0.2 to the /opt/ folder. Even that resulted the same thing.
Also my JasperServer is up and running. But when I run a report it returns the following error;
com.jaspersoft.jasperserver.api.JSException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
Do not know whether there is any connection between these two issues.
$ sudo chmod 775 -R iReport-4.0.2/
if don't work you should use "sudo" to open iReport
$ sudo ./ireport
Regards
Yusuf Firdaus
you must login with root user in terminal means
$ sudo su
Enter password
After that run the ireport