четверг, февраля 06, 2014

Cassandra 2.0.4 cannot start

ERROR [main] 2014-02-05 16:19:24,375 CassandraDaemon.java (line 478) Exception encountered during startup
java.lang.IllegalStateException: Unfinished compactions reference missing sstables. This should never happen since compactions are marked finished before we start removing the old sstables.
        at org.apache.cassandra.db.ColumnFamilyStore.removeUnfinishedCompactionLeftovers(ColumnFamilyStore.java:495)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:264)
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:461)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:504)


mkdir /opt/cassandra/compactions_in_progress.20140205; mv /opt/cassandra/data/system/compactions_in_progress/* /opt/cassandra/compactions_in_progress.20140205/

среда, декабря 04, 2013

OpenVZ охуенен !

OpenVZ кроет KVM, VMvare по простоте и удобству в использовании.

четверг, июня 27, 2013

Symfony 2: http://x.x.x.x/login_check error 500

You must configure the check path to be handled by the firewall using form_login in your security firewall configuration.
IT'S POST POST POST POST POST, you can see it when you open in browser cos it's GET GET GET 

воскресенье, апреля 21, 2013

Linux: "Give root password for maintenance"




In the event your Linux box experiences disk or file system issues you may receive a "Give root password for maintenance" prompt upon reboot. If you have your root password you can login but in the event your using 'slide' or 'sudo' for wheel access or you've just mis-placed your root password - you'll need to reset it.

To reset your root password:

1. When the GRUB loader shows during boot press the spare bar to pause boot.
2. Select your boot kernel.
3. Type 'e' to edit the default kernel line.
4. Type 'e' again on the line that starts with 'kernel'.
5. Add 'init=/bin/bash' to the end of the 'kernel' line then press enter.
6. Type 'b' to boot the modified kernel parameters.
7. Once you're at the /bin/bash prompt you will need to remount the root file system as read/write in order to edit the passwd file:
# mount -o remount,rw /
8. Change your root password:
# passwd root
9. Remount the filesystem back to read only:
# mount -o remount,ro /
10. Reboot your server using CTR-ALT-DELETE.
11. You will now be able to login with your new root password and carry out the maintenance.


четверг, декабря 20, 2012

Starting mongod: error command line: multiple occurrences

I tried to start mongod service and got error:

[root@mongo root]# service mongod start
Starting mongod: error command line: multiple occurrences
use --help for help
                                                           [  OK  ]

service didn't start an didn't log nothing
problem was into /etc/mongod.conf
I set one of parameters double into config, in my case it was "fork = true"
after removed one, service started successfully

среда, ноября 07, 2012

Symfony 2.1 SonataUserBundle errors

error at http://localhost/admin/sonata/user/user/create:  
The server returned a "500 Internal Server Error".

 log:
request.INFO: Matched route "admin_sonata_user_user_create" (parameters: "_controller": "Sonata\AdminBundle\Controller\CRUDController::createAction", "_sonata_admin": "sonata.user.admin.user", "_sonata_name": "admin_sonata_user_user_create", "_route": "admin_sonata_user_user_create")
...
 request.CRITICAL: RuntimeException: The locale resource bundle could not be loaded for locale "en" (uncaught exception) at vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php line 160

solution:
>> php vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php 49


error at http://localhost/admin/sonata/user/user/list:
The server returned a "500 Internal Server Error".

log:
request.INFO: Matched route "admin_sonata_user_user_list" (parameters: "_controller": "Sonata\AdminBundle\Controller\CRUDController::listAction", "_sonata_admin": "sonata.user.admin.user", "_sonata_name": "admin_sonata_user_user_list", "_route": "admin_sonata_user_user_list")
...
request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route "homepage".") in "SonataAdminBundle:CRUD:list.html.twig". (uncaught exception) at app/cache/prod/classes.php line 9300

solution add to routing.yml:
homepage:
    pattern: /homepage

понедельник, июля 30, 2012

Install cloudera cluster cheats, add VM node.

  1. disable selinux at all hosts /etc/selinux/config
  2. disable iptables at master or fix rules
  3. set all node hosts of cluster in all /etc/hosts
  4. change the host name in all /etc/cloudera-scm-agent/config.ini

  1. enter into runned instance and change mac adress in /etc/sysconfig/network-scripts/ifcfg-eth0
  2. shutdown
  3. change mac address into Virtual Box VM preferences
  4. start VM
  5. ifconfig
  6. add host to /etc/hosts
    • 10.0.0.10   node10.cloudera node10
  7. change host at  /etc/sysconfig/network
    • HOSTNAME=node10.clouder