Monday, August 31, 2015

Help 4 Error - Old

  1. bin/flume-ng: line X: syntax error in conditional expression (flume)
    1. add " symbol. for instance,
      1. if [[ $line =~ "^java\.library\.path=(.*)$" ]]; then
    2. or, update bash.
      1. check bash version using 'bash -version' command
  2. warning: unprotected private key file! / permissions 0xxx for 'path/to/id_rsa' are too open (OpenSSH)
    1. chmod 600 path/to/id_rsa
  3. ask for password, even authorized_keys file exists (SSH)
    1. chmod 700 .ssh
    2. chmod 644 .ssh/authorized_keys
  4. failed to recv file (R - scp)
    1. check the file path
  5. no lines available in input / 입력에 가능한 라인들이 없습니다 (R - read.table with pipe)
    1. check the file path
  6. java.net.MalformedURLException: unknown protocol: hdfs (java)
    1. add 'URL.setURLStreamHandlerFactory(new FsUrlStreamHandlerFactory());'
  7. argument list too long (curl)
    1. it causes the error, because 'cat base64.txt' returns long content
      1. curl -XPOST "http://localhost:9200/test/person" -d '
        {
        "file" : {
        "_content" : "'`cat base64.txt`'"
        }
        }'
    2. use '@-' to solve the problem
      1. curl -XPOST "http://localhost:9200/test/person" -d @- <<CURL_DATA
        {
        "file" : {
        "_content" : "`cat base64.txt`"
        }
        }
        CURL_DATA
      2. note that you can use any string instead of CURL_DATA, and there is no single quote inside the value of _content this time
  8. invalid target release: 1.7 (maven)
    1. export JAVA_HOME=<java home path>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.