karaf

Unresolved requirement: osgi.component

核能气质少年 提交于 2019-12-11 00:49:59
问题 I'm trying to develop onto Karaf an OSGi WAB containing a REST API and a call from a custom-made service. However, for some weird reason, the OSGi framework complains about an unsatisfied capability, osgi.component . I would like to know : How can I solve this issue? What is osgi.component bundle? Why is needed? Why maven-bundle-plugin (thereby also bnd), declares it inside the entry "Require-Capability"? If I need to install it on the OSGi framework, where may I find it? Some additional

Jetty: set up general host

霸气de小男生 提交于 2019-12-08 06:32:00
问题 How can i force Jetty to open all deployed webapps starting from specific virtual host like test.localhost:8080/myapp instead of localhost:8181/myapp ? Here's snippet from jetty.xml: <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"> <Property name="jetty.host"/> </Set> <Set name="port"> <Property name="jetty.port" default="8181"/> </Set> ... ... i tried to play with jetty.host value but still no success. :( How to? 回答1: To

OpenDaylight: Error installing boot features

北城余情 提交于 2019-12-08 03:28:39
问题 I am facing this error: 2018-02-28T08:30:08,419 | ERROR | pool-1-thread-2 | BootFeaturesInstaller | 7 - org.apache.karaf.features.core - 4.1.3 | Error installing boot features org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e; type=karaf.feature; version="[0,0.0.0]"; filter:="(&(osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0)

OSGi Declarative services filter references at runtime

时光总嘲笑我的痴心妄想 提交于 2019-12-07 21:42:59
问题 I've been trying some examples with OSGi Declarative Services (among other things, such as Blueprint) on Karaf. The problem I am trying to solve now, is how to get references to certain services at runtime (so annotations and/or XML are not really an option here) I will explain my use case: I am trying to design (so far only in my head, that's why I am still only experimenting with OSGi :) ) a system to control certain automation processes in industry. To communicate with devices, a special

Jetty: set up general host

不想你离开。 提交于 2019-12-07 15:09:39
How can i force Jetty to open all deployed webapps starting from specific virtual host like test.localhost:8080/myapp instead of localhost:8181/myapp ? Here's snippet from jetty.xml: <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"> <Property name="jetty.host"/> </Set> <Set name="port"> <Property name="jetty.port" default="8181"/> </Set> ... ... i tried to play with jetty.host value but still no success. :( How to? To LISTEN on a specific network interface, you specify that interface either via its IP address (IPv4 or IPv6) or

How to deploy a karaf feature from a local maven repository?

耗尽温柔 提交于 2019-12-07 08:30:38
问题 I've created by first project for karaf (4.0.1). So far I've got the following: an application bundle built with the maven-bundle-plugin . There are going to be more... a karaf feature created with the karaf-maven-plugin . a karaf-assembly created with the same plugin So I'm ready to deliver to the customer - but I'm stuck over the development process. This question answered almost all my remaining questions save one: After having built my project by running maven install I think I should be

Can't capture Apache Karaf client output

一个人想着一个人 提交于 2019-12-07 03:09:54
问题 I started Apache Karaf 3.0.0 in server mode using $KARAF_HOME/bin/start in CentOS 6.5. Then I wanted to run several commands using $KARAF_HOME/bin/client and also capture the output of these commands, so as to make sure the commands ran successfully. The output did get spit out on my console but I was never able to redirect it into a file. Seems like Karaf doesn't write anything to the output stream or error stream. I tried the following: [apache-karaf-3.0.0]$ ./bin/start clean [apache-karaf

OpenDaylight: Error installing boot features

不羁岁月 提交于 2019-12-06 16:09:07
I am facing this error: 2018-02-28T08:30:08,419 | ERROR | pool-1-thread-2 | BootFeaturesInstaller | 7 - org.apache.karaf.features.core - 4.1.3 | Error installing boot features org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e; type=karaf.feature; version="[0,0.0.0]"; filter:="(&(osgi.identity=b9b64fb5-51e0-4ead-92af-087b5f324d3e)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0))" [caused by: Unable to resolve b9b64fb5-51e0-4ead-92af-087b5f324d3e/0.0.0: missing requirement

kettle 大数据插件操作相关问题

柔情痞子 提交于 2019-12-06 12:14:58
一、hadoop 没有权限的解决方案 原文: http://kcd.nivalsoul.cn/article/1545533237270 问题 在 windows 上使用 kettle 连接 hadoop 写文件的时候,默认使用的是本机登录用户作为文件属主访问 HDFS 文件的,如果目标路径权限不允许,就会报错。 解决方案 1、修改 HDFS 目录权限 使用 HDFS 管理员登录将相关目录设置为所有人可写,比如 777 权限 2、在 kettle 中指定操作 HDFS 的用户 由于 HDFS 的 Java API 访问是通过获取 HADOOP_USER_NAME 这个变量来设置用户的,所以可以手动设置该值为 HDFS 上有权限的用户名即可。 1)通过在 Spoon.bat 中设置 在 set OPT= 这一行后面提添加内容: “-DHADOOP_USER_NAME=yourHdfsUser” 2)如果是 Java 代码,可以通过如下方式设置 System.setProperty("HADOOP_USER_NAME", "yourHdfsUser"); //指定属主 二、Linux上执行hdfs文件输出路径不正确 问题:可能创建了文件没有写数据,可能写到linux本地文件路径下,可以按如下设置试试: 在spoon.sh下修改参数 opt字符串里增加 -Dpentaho.karaf

OSGi Declarative services filter references at runtime

自古美人都是妖i 提交于 2019-12-06 07:50:51
I've been trying some examples with OSGi Declarative Services (among other things, such as Blueprint) on Karaf. The problem I am trying to solve now, is how to get references to certain services at runtime (so annotations and/or XML are not really an option here) I will explain my use case: I am trying to design (so far only in my head, that's why I am still only experimenting with OSGi :) ) a system to control certain automation processes in industry. To communicate with devices, a special set of protocols is being used. To make the components as reusable as possible, I designed a