我如何让一个文件夹出现在浏览器中后,添加到\pentaho-solutions
在五角大楼5.0.1CE。我读到的文档似乎不适用于这个新版本。
1. Create a new directory in /pentaho/server/biserver-ee/pentaho-solutions/.
Use underscores instead of spaces in the solution directory name. Ensure that the directory has the appropriate user
and group ownership to be writable from the BI Platform.
2. Using an XML-aware text editor (or Design Studio), create a file named index.xmlin your new solution directory.
3. Copy the following text into the index.xml file, changing the content accordingly:
***<index>
<name>Example Solution</name>
<description>This solution contains examples I created while learning to
work with action sequences.</description>
<icon></icon>
<visible>true</visible>
<display-type>icons</display-type>
</index>***
4. Save the file and close the text editor.
5. Log into the Pentaho User Console as an administrator.
6. Refresh the solution repository cache by going to the Toolsmenu, then selecting the Refreshsubmenu, then
clicking on Repository Cache.
You now have a new solution directory. It will show up in all file dialogues in the Pentaho User Console as well as the
Solution Browser in the left pane.
Every time you add or edit an action sequence to your solution directory, you must refresh the repository cache as
explained above. Each user currently logged into the Pentaho User Console must also refresh their session cache; this
is best done by re-logging into the Pentaho User Console.
我正在使用Pentaho design studio开发一个xaction序列脚本。我遵循了以下步骤:
1. In Design Studio, go to the Filemenu, then select New, and click on Other...in the sub-menu.
The Newwindow will appear.
2. In the Newwindow, click the triangle next to Pentaho, select New Action Sequence Wizard, then click Next.
3. In the File namefield, type hello_world.xaction.
4. Select Hello Worldfrom the Templatedrop-down box, then click Finish.
The wizard will generate the new file and bring you back to the workbench.
5. Click on HelloWorldComponentin the Process Actionssection on the left.
The right side of the screen will change to show the options available for this action: Nameand Message. The
Name field controls the name of the component in the Process Actions list on the left; it doesn't do anything else of
note. The Message field contains the text that will appear on the screen when the action sequence is run. It is prepopulated with %quote, which is a token that represents a quote message in a nonexistent properties file. Pentaho
used to provide properties files for each example, but they have been removed from the standard Pentaho Business
Analytics distribution.
6. Replace the %quotewith a sufficiently inspiring message.
Alternatively, you could create a hello_world.propertiesfile and populate it with the appropriate messages and
tokens, but that has no advantage unless you intend to internationalize this action sequence.
7. Save the file.
You now have a working action sequence that prints a short text message: "Hello, World." plus whatever you typed into
the Message field. The first part of the message is determined by a message bundle packaged with the Pentaho Web
application archive.
To test the action sequence, use the Test tab if you are on Windows or OS X, or log into the Pentaho User Console and
run it from the Solution Browser.
运行示例xaction失败,出现以下错误
Sorry. We really did try.
Something went wrong. Please try again
or contact your administrator.
我想这是因为当我在design studio中生成url时,pentaho无法找到文件路径中指定的xaction文件。尽管刷新了缓存,但我在解决方案目录中创建的文件夹并未出现在浏览器目录列表中。有什么帮助吗?
发布于 2014-05-15 21:05:11
在版本5中,文件和文件夹不再存储在"/pentaho/server/biserver-ee/pentaho-solutions/...“中它现在存储在一个杰克兔存储库中。
您可以在用户控制台中创建文件夹和上传文件。
发布于 2015-01-23 17:39:06
在启动biserver 5.2后,我确实犯了错误。意外的是,我删除了公共文件夹后,配置为杰克兔。现在,我如何创建文件夹,以便可以看到Public文件夹和Home文件夹。
发布于 2015-05-16 06:01:41
很抱歉过了一段时间又回到这个问题上来,以防有人搜索了一些与Pentaho存储库管理相关的东西,但没有成功,我希望这个信息能有所帮助。
为了更清楚起见,我使用的是5.2.x版,并且假设您想要在“浏览文件”屏幕的根目录上创建一个新文件夹,这在Pentaho5 CE控制台上是不允许的。
关于基于JackRabbit的存储库管理的答案是正确的,所以我们用来配置新的“解决方案”文件夹的旧方法不再有效。从版本5开始,Pentaho公开了一个有趣的REST api,它允许你做web控制台中不允许的事情。
例如,为了在根目录下创建一个文件夹,你应该创建一个http REST PUT请求到Pentaho Server (使用curl这样的工具,或者如果你喜欢Google Chrome,比如Advanced Rest Client等)。使用以下网址:http://localhost:8080/pentaho/api/repo/dirs/:new_directory_name?userid=admin&password=password
Pentaho存储库目录REST api记录在这里:http://javadoc.pentaho.com/bi-platform500/webservice500/resource_DirectoryResource.html
花点时间阅读REST API文档是值得的。
https://stackoverflow.com/questions/23678597
复制相似问题