Posts

Showing posts from December 11, 2018

unable to start zookeeper on CentOS 7

Image
up vote 0 down vote favorite 1 When I try to start the Zookeeper server, I got the error bash: zkServer.sh: command not found... I had followed the installation instruction given in the Solr 7.5 documentation And in the zoo.cfg file I had added the below information. tickTime=2000 dataDir=/var/lib/zookeeper clientPort=2181 initLimit=5 syncLimit=2 server.1=192.168.8.10:2888:3888 server.2=192.168.8.11:2888:3888 server.3=192.168.8.12:2888:3888 autopurge.snapRetainCount=3 autopurge.purgeInterval=1 I have CentOS 7 and I have installed Java version 1.8.0_191 and I have set the Environment Variable by editing .bash_profile file with the following. export JAVA_HOME=/opt/jdk1.8.0_191 export PATH=/opt/jdk1.8.0_191/bin:$PATH I had tried with zkServer.sh start command and zkServer.sh start-foreground Both comma...

Bind dynamic inputs

Image
up vote 0 down vote favorite I have a form that has a dynamic inputs, so I don't know the count and names of the inputs, as you can see in the code below, they came from database. <div class="panel-body"> <form asp-action="BrandFilter" method="get"> <div class="form-group"> @foreach (var brand in Model) { <div class="checkbox"> <label> <input asp-for="@brand" type="checkbox" />@brand (10) </label> </div> } </div> <button class="btn btn-default btn-sm btn-primary"><i class="fa fa-pencil"></i> Apply...