Pentaho 5.0.1 CE Добавление папки в каталог pentaho-solutions

Как заставить папку появляться в браузере после ее добавления в \pentaho-solutions в Пентахо 5.0.1 н.э. Кажется, что документация, которую я читаю, не работает с этой новой версией.

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 для разработки сценария последовательности действий. Я следовал этой процедуре:

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.

Я полагаю, что это потому, что pentaho не может найти файл xaction, как указано в пути к файлу, когда я генерирую URL-адрес из дизайн-студии. Папка, которую я создал в каталоге решений, не отображается в списке каталогов браузера, несмотря на обновление кэша. Любая помощь?

3 ответа

В версии 5 файлы и папки больше не хранятся в "/pentaho/server/biserver-ee/pentaho-solutions/...". Теперь они хранятся в хранилище крольчих.

Вы можете создавать папки и загружать файлы в пользовательской консоли.

Я сделал ошибку после запуска biserver 5.2. Неожиданно я удалил папку Public после настройки на jackrabbit. Теперь, как мне создать папку, чтобы я мог видеть общие и домашние папки.

Извините за возвращение к этому вопросу через некоторое время, на случай, если кто-то безуспешно ищет что-то, связанное с управлением репозиториями в Пентахо, надеюсь, эта информация поможет

Просто чтобы прояснить ситуацию, я использую версию 5.2.x, и я предполагаю, что вы хотите создать новую папку в корневом каталоге экрана "Просмотр файлов", что запрещено в веб-консоли Pentaho5 CE.

Ответы об управлении репозиторием на основе JackRabbit верны, поэтому старый способ, которым мы использовали для настройки новых папок "решений", больше не работает. Начиная с версии 5, Pentaho представляет интересный API REST, который позволяет вам делать вещи, которые не разрешены в веб-консоли.

Например, для создания папки в корневом каталоге вы должны создать запрос HTTP REST PUT для сервера Pentaho (используя такие инструменты, как curl или, если вам нравится Google Chrome, что-то вроде Advanced Rest Client и т. Д.), Используя следующий URL: http: / / локальный: 8080 / Pentaho / API / репо / каталоги /: new_directory_name Идентификатор_пользователь = администратор и пароль = пароль

Каталог REST API хранилища Pentaho описан здесь: http://javadoc.pentaho.com/bi-platform500/webservice500/resource_DirectoryResource.html

Стоит потратить некоторое время на чтение REST API документации.

Другие вопросы по тегам