Pentaho Spoon writes new txlog folder to old data-integration folder location - pentaho

Something in Pentaho data-integration saves the folder of the first location it was run.
This was a problem for me because I ran it for the first time in my downloads folder and then moved it to my Program Files folder.
Specifically the folder
\data-integration\system\karaf\caches\spoon\data-1\txlog

For anyone whose problems are still not solved, you may be using a newer version of Kettle.
I had the same issue, and first followed Tyler's advice to find the file
data-integration\system\karaf\instances\instance.properties
and change the item.0.loc property from the old path to the new.
However there were still odd goings on, and this didn't fully resolve the issue.
I ended up finding one of the cache bundles (in my case bundle 15) contained a transaction.config file buried deep in the filesystem which was still pointing to the old path:
data-integration\system\karaf\caches\spoon\data-1\cache\bundle15\data\config\org\apache\aries\transaction.config
So I changed the aries.transaction.howl.logFileDir from the old path to the new, and it fixed the issue. Sneaky!

I found the file
data-integration\system\karaf\instances\instance.properties
and was able to change the line
item.0.loc
to point to my new folder.

Related

Unable to copy file "xxx" to "bin/debug/xxx.deploy". Could not find a part of the path

I developed a vb.net project and built it successfully. but while publishing, I got an error Unable to copy file "Resources\xxxxxxx.xlsx" to "bin\Release\app.publish\Application Files\aaaaaaaaaaaaaaaa_1_0_0_90\Resources\xxxxxxxx.xlsx.deploy". Could not find a part of the path 'bin\Release\app.publish\Application Files\aaaaaaaaaaaaaaaa_1_0_0_90\Resources\xxxxxxxx.xlsx.deploy'.
I couldnt find the reason for the issue. Tried reopening the project rebuilding and republishing several times.
I found the solution myself. The problem was the file name. The filename was too long. I saved the project inside Document folder within many sub folder. Thats why the filename became too long. I copied the project and placed insinde Documents folder directly and tried publishing. It was successfull.
Thank you

TFS 2015 Artifacts always empty upon build

I have created build definition which runs successfully. Now I want to create a release definition on the successful build, for which it is asking for artifacts.
When I tried browsing "Drop" folder, I found it empty.
Below are the images from Copy Files step and Publish build artifacts step.
I also tried instructions from The item MY_ARTIFACT_NAME in container XXX could not be found
But no luck. Please help.
I believe that you should use $(build.sourcesdirectory) (or a path relative to) as the source folder if you want to copy files which are not checked in.
Also, from the documentation of the Copy Files step
The pattern is used to match only file paths, not folder paths. So you should specify patterns such as **\bin\** instead of of **\bin.
Try changing the contents pattern to **\bin\** and see if that helps.

Two /gen folders on Linux?

I am using IDEA 11.1 on Ubuntu 11.10 system. I renamed the main module via Ctrl+F6 and after this IDEA created two /gen folders. Look at the image
The upper /gen has full path in the brackets (like /disk2/work/project/...). The lower /gen contains the path via desktop shortcut (like /home/user/Desktop/work/project/...). The both paths leads to the same directory.
The top-most folder has new name, while the lower folder (under the upper gen directory) has the name of a hard disk directory of a project.
Can anyone suggest how to merge this? It's making me a headache as IDEA does not recognize any new resource I add to this project.
I tried deleting all .idea and other conf files and recreating a project into the same directory (via Create Project with existing source files command), but it did not solve the issue.
I also tried to reverse to the previous state via "Show History" feature, but it was not possible. This step was not in the history.
PS. sorry about black-line parts but I was instructed to do so.

Intellij Idea problem with text file impossible to read

I have a problem using Intellij Idea.
I am absolutely unable to load text file as InputStream - it doesnt matter where do I put the file (main/java, main/resources...) it just can't find the file - in Eclipse everything works just fine.
I tried setings->compiler->resource patterns and added ?*.txt but that doesn't seem to work either.
Any help is appreciated.
If you load it as a File, make sure that Working Directory is properly set in IDEA Run/Debug Configuration, since it's the default directory where Java will look for a file when you try to access it like new File("file.txt"). Working directory should be set to the directory of your project containing .txt files.
If you load files as a classpath resource, then they should reside somewhere under Source root and will be copied to the classpath according to Settings | Compiler | Resource Patterns.
If you can't get it working, upload your project somewhere including IDEA project files so that we can point to your mistake.
Look at the image, notice that the txt files are in the project root, and not the source folders (in blue).
If you open the Project Structure dialog, and click on Modules and select your module - are the correct folders marked as Source Folders on the sources tab?
Link for how to get to Project Structure dialog
Also, if you print out the absolute path of that file you are trying to read, is that anywhere near where you expect it to be?
An easy way to figure out the same would be to try creating a file in the same fashion and see where it gets created in your project. You can put your input file at the same location and it should work just fine (if it doesn't, you should check your resource pattern which might be causing the file to be not copied over in the build output).
This method actually gives you the working directory of your intellij settings which is pointed out in the accepted answer. Just sharing as I had similar trouble and I figured out this way. :)

Wrong Filename for .mom file in momd folder in iOS Build

My team recently renamed the project of an Objective-C iOS app in Xcode and we've determined a larger problem to be the cause of the .mom file within the momd directory to be named wrongly.
Example (not real names):
Our project used to be named "ChinaTown", but was renamed to "Chinatown". Thus inside the Chinatown.momd directory is a ChinaTown.mom file.
How can we ensure that the .mom file within the momd directory is of the correct name and case?
Fixed by recreating the data model and deleting the old one. Reference stackoverflow thread