在Pentaho 5.0.1 CE中将文件夹添加到\pentaho-solutions
后,如何让文件夹显示在浏览器中。我读过的文档似乎不适用于这个新版本。
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文件。尽管刷新了缓存,但我在解决方案目录中创建的文件夹不会出现在浏览器目录列表中。有什么帮助吗?
答案 0 :(得分:3)
使用版本5,文件和文件夹不再存储在“/ pentaho / server / biserver-ee / pentaho-solutions / ......”中 它现在存储在jackrabbit存储库中。
您可以在用户控制台中创建文件夹和上传文件。
答案 1 :(得分:0)
启动biserver 5.2后我确实犯了错误。出乎意料的是,我在配置为jackrabbit后删除了Public文件夹。现在我如何创建文件夹,以便我可以看到公共文件夹和主文件夹。
答案 2 :(得分:0)
很抱歉在一段时间后回到这个问题,以防有人搜索与Pentaho存储库管理相关的内容但没有成功,我希望这些信息可以提供帮助。
为了使事情更清楚,我使用的是5.2.x版,我想你想在浏览文件屏幕的根目录下创建一个新文件夹,这是Pentaho5 CE Web Console上不允许的。
基于JackRabbit的存储库管理的答案是正确的,因此我们用于配置新“解决方案”文件夹的旧方法不再适用。从版本5开始,Pentaho公开了一个有趣的REST api,它允许你做一些Web控制台不允许的事情。
例如,要在根目录中创建文件夹,您应该使用以下URL为Pentaho Server创建一个http REST PUT请求(使用像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文档。