Make sure you replace the following lines:
- Parser docker
- multiline.parser docker, cri
Make sure you replace the following lines:
First try to do the following:
If that does not work then edit the pod, like:
And remove the finalizers section and save
I was trying to install Prometheus and Grafana in one of my Kube clusters. So I download Prometheus and Grafana helm repos, to my surprise most of the predefined dashboards that I found were not working, so I spent hours figuring out why; there were some missing metrics and components not installed by default. At the end, I was able to make some of those work.
For days, I thought that there was not a prebuilt Grafana/Prometheus dashboard solution until I took a look into Rancher, in their documentation they make a reference to Kube-Prometheus-Stack. Not sure why I did not find this helm chart before, it already contains a full set of Grafana dashboards that will help you monitoring Kubernetes (pods, workloads, namespaces, etc).
Here is the link to the Helm Chart.
I have been working with Pentaho Kettle, and I needed to add some scripts, I decided to use Java since you can import some extra libraries, which is not allowed on Javascript component (or I haven't found how).
I read the documentation and I implemented the processRows method, while testing I realized that getRow method was returning 'null' every time, at the beginning I thought it was related to the input type so I tried a couple, json, csv, excel, etc, and I always had the same result.
What was the solution? I was missing `putRow(...)` line, I am not sure what internally does but after adding it then getRow() started sending objects instead of null. I mean it makes kind of sense since if you miss putRow then whatever you do inside this component will not propagate further, I just wish it was documented somewhere.
So your code should look like this:
sh: 1: cannot create /home/jenkins/agent/workspace/myproject/durable-48fa5881/jenkins-log.txt: Permission denied
RUN groupadd --gid 10000 jenkins && useradd --gid 10000 --uid 10000 jenkins --shell /bin/bash
RUN mkdir /home/jenkins && chown -R jenkins:jenkins /home/jenkins
USER jenkins
WORKDIR /home/jenkins
import com.typesafe.sbt.packager.docker.DockerChmodType dockerChmodType := DockerChmodType.UserGroupWriteExecute
javaOptions in Universal ++= Seq( // Since play uses separate pidfile we have to provide it with a proper path // name of the pid file must be play.pid s"-Dpidfile.path=/var/run/play.pid")
dockerCommands ++= Seq( ExecCmd("RUN", "mkdir", "-p", s"/var/run/") )
sbt dist && sbt docker:publishLocal
dir=$(pwd) docker run -v $dir/my_play_project:/var/run -v \
$dir/my_play_project/logs:/opt/docker/logs -p 9000:9000 \
my_play_project:1.0
import ExecutionContext.Implicits.globalI do not know why it wasn't detected at compile time, or why the exception was only coming as NullPointerException without any other hint. My test is something like this:
"Some test" should {
"execute this" in {
val client = mock[AClass]
val host = new BClass(client)
doReturn(Future {x}).when(client).aMethod(any[String], any[String]) // This was throwing a NPE
val response = host.anyMethod(cI, mA, bL)
Await.result(response, Duration(30, SECONDS))
there was one(client). aMethod(any[String], any[String])
}
}