Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2507

curl usage in kylin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • v1.6.0
    • None
    • None
    • None
    • kylin

    Description

      Hi all,

      can you please tell me what values i have to give in curl command for kylin rebuild.can you explain me where i have to get startTime,endTime values.I am using like the below,
      /usr/bin/curl -c /home/hdfs/cookiefile.txt -X POST -H "Authorization: Basic QURNSU46S1lMSU4 =" -H 'Content-Type: application/json' http://ipaddress:7070/kylin/api/user/authentication

      /usr/bin/curl -b /home/hdfs/cookiefile.txt -X PUT -H 'Content-Type: application/json' -d '

      {"startTime":'1425384000000', "endTime": '1489156500000', "buildType":"BUILD"}

      ' http://ipaddress:7070/kylin/api/cubes/analytics_cube/rebuild

      here i am getting startTime and endTime from http://ipaddress:7070/kylin/api/cubes/analytics_cube of date_range_start and date_range_end.am i using proper once or not.
      In manual build we can specify endDate of cube,but in curl where we can specify end Date?anybody can you please explain me all these doubts.
      If i am using same query in crontab then i am not getting refreshed data from hive into kylin.what i have to do for getting refreshed data?

      Attachments

        Activity

          People

            Unassigned Unassigned
            prasannapadarthi@gmail.com prasannaP
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: