install ingest-attachment plugin error - java

I downloaded ingest-attachment plugin 6.3.0 version to my machine and trying to install using command prompt in my windows machine and am getting the error.
Please find the error that am getting while installing ingest-attachment plugin.
I have install elasticsearch 6.2.3 version.
D:\1SearchEngine\elasticsearch-6.2.3\elasticsearch-6.2.3>bin\elasticsearch-plugi
n install d:\1SearchEngine\ingest-attachment\ingest-attachment-6.3.0.zip
-> Downloading d:\1SearchEngine\ingest-attachment\ingest-attachment-6.3.0.zip
Exception in thread "main" java.net.MalformedURLException: unknown protocol: d
at java.net.URL.<init>(URL.java:600)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPlu
ginCommand.java:329)
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPlugin
Command.java:253)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginC
ommand.java:221)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginC
ommand.java:212)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar
eCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
24)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:75)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1
24)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)
D:\1SearchEngine\elasticsearch-6.2.3\elasticsearch-6.2.3>

The documentation says that:
bin\elasticsearch-plugin install file:///C:/path/to/plugin.zip
You are missing file://.

Related

ERROR: Failed to install JDK when we install jdk in jenkins using manage config

When we run the jenkins job , and jdk configured using global manage config.
`Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/maven_git
Installing JDK jdk-8u221-oth-JPR
Downloading JDK from https://download.oracle.com/otn/java/jdk/8u221-b11/230deb18db3e4014bb8e3e8324f81b43/jdk-8u221-linux-x64.tar.gz
Downloading 4106 bytes
Installing /var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh
[java8] $ /var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh -noregister
/var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh: line 1: syntax error near unexpected token `newline'
/var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh: line 1: `<html>'
ERROR: Failed to install JDK. Exit code=2`
When we run the jenkins job , and jdk configured using global manage config.
`Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/maven_git
Installing JDK jdk-8u221-oth-JPR
Downloading JDK from https://download.oracle.com/otn/java/jdk/8u221-b11/230deb18db3e4014bb8e3e8324f81b43/jdk-8u221-linux-x64.tar.gz
Downloading 4106 bytes
Installing /var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh
[java8] $ /var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh -noregister
/var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh: line 1: syntax error near unexpected token `newline'
/var/lib/jenkins/tools/hudson.model.JDK/java8/jdk.sh: line 1: `<html>'
ERROR: Failed to install JDK. Exit code=2`

How to fix camel-k-kit error in camel-k version 1.0.0?

I just installed camel-k 1.0.0 as described in the installation documentation and ran a simple groovy example.
I installed camel-k on a 1.17 virtual on-prem kubernetes test-cluster.
The error:
Error during unshare(CLONE_NEWUSER): Invalid argument
User namespaces are not enabled in /proc/sys/user/max_user_namespaces.
level=error msg="error parsing PID \"\": strconv.Atoi: parsing \"\": invalid syntax"
level=error msg="(unable to determine exit status)"
How I installed:
kamel install --registry sonatype.nexus3.reg. --registry-auth-username MyUsername --registry-auth-password MyPassword
Then I executed hello.groovy:
kamel run hello.groovy
A camel-k-kit pod is created then running after a couple of seconds into the above error.
What am I doing wrong?

JXBrowser failed to launch in Ubuntu18.04

I tried to launch the application from JXBrowser in ubuntu 18.04 OS. It is giving the following error. But it is working fine with other versions of Ubuntu.
2019-02-19 21:05:20,407 [Thread-1] ERROR c.m.m.g.w.jxbrowser.JXBrowserHandler - JXBrowser failed to launch. Failed to start IPC process. com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to start IPC process. at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:208) ~[jxbrowser-6.22.1.jar:6.22.1] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_162] Caused by: java.lang.IllegalStateException: Missing dependendecies have been detected. Check the log for details. at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcessLinux.preProcessRun(SourceFile:3150) ~[jxbrowser-6.22.1.jar:6.22.1] at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcess.doStart(SourceFile:62) ~[jxbrowser-6.22.1.jar:6.22.1] at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(SourceFile:235) ~[jxbrowser-6.22.1.jar:6.22.1] at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:199) ~[jxbrowser-6.22.1.jar:6.22.1] ... 1 common frames omitted
JxBrowser 6.22.1 is based on Chromium 64 engine which requires some dependencies installed in the system.
The issue should be fixed after running of those commands:
sudo apt install libgconf2-4
or
sudo apt-get install -f
The dependency issue on Linux is fixed in Chromium 67+ versions. We can provide you with a JxBrowser build which includes an updated Chromium engine if you contact us at customer-care#teamdev.com

Using JPL with SWI-Prolog on macOS

I'm trying to use JPL with SWI-Prolog on macOS High Sierra and I'm having troubles. In fact, at first the libjpl.dylib was not found so I added the path to it to java.library.path via
java -Djava.library.path=/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0/
Now the library is found but I get another error:
java.lang.UnsatisfiedLinkError: /Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0/libjpl.dylib: dlopen(/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0/libjpl.dylib, 1): Library not loaded: #executable_path/../swipl/lib/x86_64-darwin15.6.0/libswipl.dylib
Referenced from: /Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0/libjpl.dylib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
...
From what I understand, this is caused by this version of SWI-Prolog being relocatable (and thus having path relative to the executable).
The output of otool -L of the libjpl.dylib give me this output:
/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0/libjpl.dylib:
#rpath/libjsig.dylib (compatibility version 1.0.0, current version 1.0.0)
#rpath/libjvm.dylib (compatibility version 1.0.0, current version 1.0.0)
#executable_path/../swipl/lib/x86_64-darwin15.6.0/libswipl.dylib (compatibility version 0.0.0, current version 7.6.4)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
So one way of fixing it would be to install a not relocatable version via macport or homebrew.
The thing is, neither the MacPorts nor the Homebrew version of SWI-Prolog contains the libjpl.dylib library :/
Am I missing something here? What can I do to make this work?
On macOS 10.13.6 (High Sierra), I regularly compile the SWI-Prolog 7.x sources using:
$ make distclean && ./build && swipl -g "jpl_config_dylib" -t halt
The jpl_config_dylib/0 finds and fixes the Java paths. You should also be able to call it from the top-level after you start the SWI-Prolog.app application.
To whomever this might be useful, as it is not a 100% match to the content of the question asked, but is a 100% match to the title of the question asked.
When installing (at least a recent version of) SWI-Prolog using Homebrew, attempting to use_module(library(jpl)) will result in an error:
ERROR: /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/library/jpl.pl:5428: Initialization goal raised exception:
ERROR: source_sink `jar('jpl.jar')' does not exist
ERROR: In:
ERROR: [48] throw(error(existence_error(source_sink,...),_109418))
ERROR: [44] jpl:add_jpl_to_classpath at /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/library/jpl.pl:3979
ERROR: [43] jpl:setup_jvm at /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/library/jpl.pl:4168
ERROR: [42] '$run_init_goal'(jpl:setup_jvm) at /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/boot/init.pl:796
ERROR: [41] catch(system:'$run_init_goal'(...),error(existence_error(source_sink,...),context(_109584,_109586)),system:'$initialization_error'(...,...,...)) at /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/boot/init.pl:546
ERROR: [40] catch_with_backtrace(system:'$run_init_goal'(...),error(existence_error(source_sink,...),context(_109660,_109662)),system:'$initialization_error'(...,...,...)) at /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/boot/init.pl:614
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
ERROR: Exported procedure jpl:jpl_c_lib_version/1 is not defined
true.
Also, executing the goal jpl_config_dylib results in an error:
?- jpl_config_dylib.
ERROR: Unknown procedure: jpl_config_dylib/0 (DWIM could not correct goal)
The MacPorts version of SWI-Prolog does not have this problem. The solution is to copy the relevant files from under the MacPorts version to under the Homebrew version of SWI Prolog:
$ cp /Applications/SWI-Prolog.app/Contents/swipl/lib/jpl.jar /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/lib/
$ cp /Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin/libjpl.dylib /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/lib/x86_64-darwin/
$ cp /Applications/SWI-Prolog.app/Contents/swipl/library/jpl.pl /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/library/
$ cp /Applications/SWI-Prolog.app/Contents/swipl/library/jpl_config.pl /usr/local/Cellar/swi-prolog/8.4.0/libexec/lib/swipl/library/
After which loading library(jpl) will work fine:
?- use_module(library(jpl)).
true.
?- jpl_new('java.lang.Object', [], JRef).
JRef = <jref>(0x7fbefb086318).

Bazel build error "No such file or directory"

I have Ubuntu 16.04. I downloaded and installed bazel according to the official bazel guide and after that I downloaded the first tutorial for building a Java project but it didn't work. I got this exception:
unexpected pipe read status: (error: 2): No such file or directory
Server presumed dead. Now printing '/home/jingw222/.cache/bazel/_bazel_jingw222/ada033fd33c06190d78b77ab4907f1d0/server/jvm.out':
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:141)
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:130)
at com.google.devtools.build.lib.skyframe.SkyframeExecutor.skyFunctions(SkyframeExecutor.java:348)
at com.google.devtools.build.lib.skyframe.SkyframeExecutor.init(SkyframeExecutor.java:586)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.init(SequencedSkyframeExecutor.java:252)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.create(SequencedSkyframeExecutor.java:211)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.create(SequencedSkyframeExecutor.java:162)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutorFactory.create(SequencedSkyframeExecutorFactory.java:48)
at com.google.devtools.build.lib.runtime.WorkspaceBuilder.build(WorkspaceBuilder.java:81)
at com.google.devtools.build.lib.runtime.BlazeRuntime.initWorkspace(BlazeRuntime.java:204)
at com.google.devtools.build.lib.runtime.BlazeRuntime.newRuntime(BlazeRuntime.java:1023)
at com.google.devtools.build.lib.runtime.BlazeRuntime.createBlazeRPCServer(BlazeRuntime.java:850)
at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:789)
at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:570)
at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:56)
Caused by: java.lang.ClassCastException: com.ibm.lang.management.UnixExtendedOperatingSystem incompatible with com.sun.management.OperatingSystemMXBean
at com.google.devtools.build.lib.util.ResourceUsage.<clinit>(ResourceUsage.java:45)
... 13 more
What can caouse the problem?
I found this issue, and finally I realized, that I need to download the jdk manually. So I used this command:
sudo apt-get install openjdk-8-jdk
After that I built it again, and it worked well.

Categories